From 011b7a20e4f331c2ce992220a0982b114c5d3774 Mon Sep 17 00:00:00 2001 From: LEESANGKYEONG <sskk713@ajou.ac.kr> Date: Thu, 6 Aug 2020 01:49:25 +0900 Subject: [PATCH] today content --- three files/README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 three files/README.md diff --git a/three files/README.md b/three files/README.md new file mode 100644 index 0000000..c94effa --- /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 -- GitLab