Skip to content
Snippets Groups Projects
Commit cd398482 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

WIMS: reclassification theme de quelques programmes + Makefile

parent 6b7f9cff
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 1 deletion
......@@ -5,6 +5,7 @@ all: data/index $(OUTPUT)
data/index: $(PROGRAMS)
cd data; \
if [ -f index ]; then rm index; fi; \
for target in $(TARGETS); do \
(echo "$$target: "`ls -m $${target}_*.cpp`) >> index; \
done
......@@ -18,6 +19,10 @@ data/%.cpp.bin: data/%.cpp
clean:
rm data/*.bin data/*.output data/index
# Pour restauration
archive:
cd ..; tar zcvf /tmp/modtool-test~coding~readingCppPrograms.fr.tgz test~coding~readingCppPrograms.fr
#main.oef: header.oef programs/guess-output/*.cpp footer.oef Makefile
# cd programs/guess-output; make all.oef
# cat header.oef programs/guess-output/all.oef footer.oef > main.oef
......
......@@ -39,4 +39,5 @@ int main() {
y = 25;
cout << max(x,y) << endl;
cout << blackJack(x,y) << endl;
return 0;
}
#include <iostream>
using namespace std;
float max(float a, float b) {
double max(double a, double b) {
if ( a >= b ) {
return a;
} else {
......
......@@ -8,4 +8,5 @@ int main() {
cout << i << endl;
i = i + 2;
}
return 0;
}
......@@ -8,4 +8,5 @@ int main() {
cout << i << endl;
i = i * 2;
}
return 0;
}
......@@ -11,4 +11,5 @@ int main() {
i = i/2;
}
}
return 0;
}
......@@ -21,4 +21,5 @@ int main() {
cout << a << " " << b << " " << c << " " << d << endl;
c + b;
cout << a << " " << b << " " << c << " " << d << endl;
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment