commit cfe99c1caa163edd1c6992e3a009f883b9ddbd04 Author: feng-arch Date: Wed Dec 18 10:13:36 2024 +0800 add Q3 diff --git a/pre-study_phase/2024_11_06/Q1/ex1 b/pre-study_phase/2024_11_06/Q1/ex1 new file mode 100755 index 0000000..aa5896f Binary files /dev/null and b/pre-study_phase/2024_11_06/Q1/ex1 differ diff --git a/pre-study_phase/2024_11_06/Q1/ex1.c b/pre-study_phase/2024_11_06/Q1/ex1.c new file mode 100644 index 0000000..3f98a6c --- /dev/null +++ b/pre-study_phase/2024_11_06/Q1/ex1.c @@ -0,0 +1,9 @@ +#include +int main(int argc, char* argv[]) +{ + puts("Hello, world!"); + for(int i=0;i<5;i++){ + puts("hello"); + } + return 0; +} diff --git a/pre-study_phase/2024_11_06/Q2/Makefile b/pre-study_phase/2024_11_06/Q2/Makefile new file mode 100644 index 0000000..49d0e02 --- /dev/null +++ b/pre-study_phase/2024_11_06/Q2/Makefile @@ -0,0 +1,5 @@ +CFLAGS=-Wall -g +clean: + rm -rf ex1 +ex1: + cc ex1.c -o ex1 diff --git a/pre-study_phase/2024_11_06/Q2/ex1 b/pre-study_phase/2024_11_06/Q2/ex1 new file mode 100755 index 0000000..aa5896f Binary files /dev/null and b/pre-study_phase/2024_11_06/Q2/ex1 differ diff --git a/pre-study_phase/2024_11_06/Q2/ex1.c b/pre-study_phase/2024_11_06/Q2/ex1.c new file mode 100644 index 0000000..3f98a6c --- /dev/null +++ b/pre-study_phase/2024_11_06/Q2/ex1.c @@ -0,0 +1,9 @@ +#include +int main(int argc, char* argv[]) +{ + puts("Hello, world!"); + for(int i=0;i<5;i++){ + puts("hello"); + } + return 0; +} diff --git a/pre-study_phase/2024_12_18/Q3/ex3 b/pre-study_phase/2024_12_18/Q3/ex3 new file mode 100755 index 0000000..0d332ae Binary files /dev/null and b/pre-study_phase/2024_12_18/Q3/ex3 differ diff --git a/pre-study_phase/2024_12_18/Q3/ex3.c b/pre-study_phase/2024_12_18/Q3/ex3.c new file mode 100644 index 0000000..dd2bf88 --- /dev/null +++ b/pre-study_phase/2024_12_18/Q3/ex3.c @@ -0,0 +1,8 @@ +#include +int main(){ + int age = 10; + int height = 72; + printf("I am %d years old.\n"); + printf("I am %d inches tall.\n", height); + return 0; +} \ No newline at end of file