Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c9c5a33
Updated to level1\p05.
Sinphnice Sep 14, 2023
e6e8922
Updated to level1\p05.
Sinphnice Sep 14, 2023
3f5e4ba
Merge remote-tracking branch 'origin/main'
Sinphnice Sep 14, 2023
ee07665
Updated to p06.
Sinphnice Sep 16, 2023
6610316
Updated to p06.
Sinphnice Sep 16, 2023
b420ea5
Merge remote-tracking branch 'origin/main'
Sinphnice Sep 16, 2023
439e291
Accomplished p05.
Sinphnice Sep 17, 2023
59d47c6
Updated to p07.
Sinphnice Sep 20, 2023
7703513
Updated to p07.
Sinphnice Sep 20, 2023
ff0d2a2
Updated to p07.
Sinphnice Sep 20, 2023
235761b
Updated to p07.
Sinphnice Sep 20, 2023
4f6e2c3
Merge branch 'main' of github.com:/Sinphnice/c2023-a
Sinphnice Sep 20, 2023
c8d4a52
.
Sinphnice Oct 8, 2023
ba8ba81
Updated to p09.
Sinphnice Oct 12, 2023
66f080d
Updated to p09.
Sinphnice Oct 21, 2023
b021ed8
Updated to p10.
Sinphnice Oct 24, 2023
033f035
Updated to p10.
Sinphnice Oct 24, 2023
09c1f1f
Updated to p10.
Sinphnice Oct 26, 2023
394df8a
Updated to Gobang AI.
Sinphnice Dec 23, 2023
7b6280d
Updated to Gobang AI.
Sinphnice Dec 23, 2023
6642af6
Updated to Gobang AI.
Sinphnice Dec 23, 2023
91004fe
Updated to Gobang AI.
Sinphnice Dec 23, 2023
a82b3b7
Updated to Gobang AI.
Sinphnice Dec 23, 2023
7024068
Merge remote-tracking branch 'origin/main'
Sinphnice Dec 23, 2023
6460546
Updated to Gobang AI.
Sinphnice Dec 23, 2023
2ccdbd9
Updated to Gobang AI.
Sinphnice Dec 23, 2023
6ad1555
Updated to Gobang AI.
Sinphnice Dec 23, 2023
fbd1f44
Updated to Gobang AI.
Sinphnice Dec 23, 2023
ab35de1
Updated to Gobang AI.
Sinphnice Jan 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/cmake-build-debug/

*.exe
/课程设计/
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

add_subdirectory(level1)
add_subdirectory(课程设计)
3 changes: 3 additions & 0 deletions level0/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
project(level1)

add_executable(p01_running_letter p01_running_letter/main.c)
3 changes: 3 additions & 0 deletions level0/bubbleSort/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
project(level0)

add_executable(bubbleSort)
28 changes: 28 additions & 0 deletions level0/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <stdio.h>
int main()
{
int vc[10]={163,347,45,346,775,512,856,411,195,685}; //An array for example.

int count = -1;
while(count != 0){
count = 0;
for(int i = 0;i<9;i++){
if(vc[i]>vc[i+1]){
int temp;

temp = vc[i+1];
vc[i+1] = vc[i];
vc[i] = temp;

count++;
}
}
}

//Show the result.
for(int i=0;i<10;i++){
printf("vc[%d]=%d ",i,vc[i]);
}

return 0;
}
26 changes: 21 additions & 5 deletions level1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
project(level1)

add_compile_options(-finput-charset=utf-8 -fexec-charset=gbk)
add_executable(p01_running_letter p01_running_letter/main.c)

add_executable(p02_is_prime p02_is_prime/main.c)

add_executable(p03_all_primes p03_all_primes/main.c)
add_executable(p03_all_primes p03_all_primes/main.c
p03_all_primes/isPrime.h
p03_all_primes/isPrime.h
p03_all_primes/isPrime.c)

add_executable(p04_goldbach p04_goldbach/main.c)

Expand All @@ -14,8 +17,21 @@ add_executable(p06_hanoi p06_hanoi/main.c)

add_executable(p07_maze p07_maze/main.c)

add_executable(p08_push_boxes p08_push_boxes/main.c)
add_executable(p08_push_boxes p08_push_boxes/main.c
p08_push_boxes/gameFunction.c
p08_push_boxes/gameFunction.h
p08_push_boxes/shellControl.h
p08_push_boxes/shellControl.c
p08_push_boxes/maploader.c
p08_push_boxes/maploader.h)

add_executable(p09_linked_list p09_linked_list/main.c
p09_linked_list/linked_list.c
p09_linked_list/linked_list.h)

add_executable(p09_linked_list p09_linked_list/main.c)
add_executable(p10_warehouse p10_warehouse/main.c
p10_warehouse/shellControl.c
p10_warehouse/shellControl.h
p10_warehouse/function.c
p10_warehouse/function.h)

add_executable(p10_warehouse p10_warehouse/main.c)
Empty file.
Empty file.
Empty file.
Empty file.
Loading