diff --git a/three files/README.md b/three files/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c94effacf6b78a1fabfb2411294f90a3c54ae30a --- /dev/null +++ b/three files/README.md @@ -0,0 +1,23 @@ +#CPP +- include file + -- ex) #include <stdio.h> or "file.h" + +- Conditional Complication + -- #if, #ifdef, #ifndef, #elif, #else, #endif + +#GCC compile option +-c: generate .o file +-g: for debeg +-O: optimization + +#GCC compile - for multiple file +- ex) func.h, func.c, main.c + --compile -gcc main.c func.c + + +###project HW2### + +#GCC compile -- by using preprocessor +- #ifdef, #else, #endif + -- func.c에서 int func_name_or_id() 구현 (no using #define PRINT_ID) + -- difference between gcc -DPRINT_ID main.c func.c and gcc main.c func.c \ No newline at end of file