Commit 54dfcb79 by Karine

### Exercise_05_18,Version2

parent 3b24c123
 exercise_05_18: main.o | .gitignore g++ \$^ -o \$@ main.ii: main.cpp %.ii: %.cpp g++ -E \$^ -o \$@ main.s: main.ii %.s: %.ii g++ -S \$^ -o \$@ main.o: main.s %.o: %.s g++ -c \$^ -o \$@ .gitignore: echo "exercise_05_18" > \$@ ... ... @@ -22,3 +23,20 @@ test: exercise_05_18 .PRECIOUS: main.ii main.s .SECONDARY: main.ii main.s dbg: debug/exercise_05_18 debug/exercise_05_18: debug/main.o | .gitignore g++ -Wall -Wextra -Werror -g3 \$^ -o \$@ debug/main.o: debug/main.s g++ -c -Wall -Wextra -Werror -g3 \$^ -o \$@ debug/main.s: debug/main.ii g++ -S -Wall -Wextra -Werror -g3 \$^ -o \$@ debug/main.ii: main.cpp | debug g++ -E -Wall -Wextra -Werror -g3 \$^ -o \$@ debug: mkdir -p debug
 ... ... @@ -3,15 +3,13 @@ int main() { for (int number = 1; number <= 256; number++) { for (int number = 1; number <= 256; number++) { int index = 1; int counter = number; int binary = 0; int binaryCharacter; while (counter != 0) { binaryCharacter = counter % 2; int binaryCharacter = counter % 2; counter /= 2; binary += binaryCharacter * index; index *= 10; ... ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!