diff --git a/Project2/Debug/Project2.Build.CppClean.log b/Project2/Debug/Project2.Build.CppClean.log index 56d185e..c7fd480 100644 --- a/Project2/Debug/Project2.Build.CppClean.log +++ b/Project2/Debug/Project2.Build.CppClean.log @@ -1,15 +1,15 @@ c:\code\lencode\project2\project2\debug\vc143.pdb c:\code\lencode\project2\project2\debug\vc143.idb c:\code\lencode\project2\project2\debug\sq_list.obj +c:\code\lencode\project2\project2\debug\main.obj c:\code\lencode\project2\project2\debug\linked_list_stack.obj c:\code\lencode\project2\project2\debug\linked_list.obj c:\code\lencode\project2\project2\debug\array_stack.obj c:\code\lencode\project2\project2\debug\array_queue.obj -c:\code\lencode\project2\project2\debug\main.obj c:\code\lencode\project2\debug\project2.exe c:\code\lencode\project2\debug\project2.pdb c:\code\lencode\project2\project2\debug\project2.ilk -c:\code\lencode\project2\project2\debug\main.obj.enc +c:\code\lencode\project2\project2\debug\array_queue.obj.enc c:\code\lencode\project2\project2\debug\project2.tlog\cl.command.1.tlog c:\code\lencode\project2\project2\debug\project2.tlog\cl.items.tlog c:\code\lencode\project2\project2\debug\project2.tlog\cl.read.1.tlog diff --git a/Project2/Debug/Project2.log b/Project2/Debug/Project2.log index 6260e31..4bc6b00 100644 --- a/Project2/Debug/Project2.log +++ b/Project2/Debug/Project2.log @@ -4,4 +4,22 @@ C:\code\lencode\Project2\array_queue.h(1,1): warning C4819: 该文件包含不 (编译源文件“array_queue.c”) C:\code\lencode\Project2\array_queue.c(22,5): warning C4013: “memset”未定义;假设外部返回 int + array_stack.c +C:\code\lencode\Project2\array_stack.c(12,5): warning C4013: “memset”未定义;假设外部返回 int + linked_list.c + linked_list_stack.c +C:\code\lencode\Project2\linked_list_stack.c(26,3): warning C4098: “push_stack_linked”:“void”函数返回值 + main.c +C:\code\lencode\Project2\array_queue.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 + (编译源文件“main.c”) + +C:\code\lencode\Project2\main.c(39,22): warning C4013: “init_array_queue”未定义;假设外部返回 int +C:\code\lencode\Project2\main.c(39,18): warning C4047: “初始化”:“array_queue *”与“int”的间接级别不同 + sq_list.c +C:\code\lencode\Project2\sq_list.c(102,9): warning C4033: “locate_list”必须返回值 +C:\code\lencode\Project2\sq_list.c(112,9): warning C4033: “locate_list”必须返回值 +C:\code\lencode\Project2\sq_list.c(166,34): warning C4047: “函数”:“int”与“sq_list *”的间接级别不同 +C:\code\lencode\Project2\sq_list.c(166,34): warning C4024: “locate_list”: 形参和实参 2 的类型不同 + 正在生成代码... +C:\code\lencode\Project2\sq_list.c(116,1): warning C4715: “locate_list”: 不是所有的控件路径都返回值 Project2.vcxproj -> C:\code\lencode\Project2\Debug\Project2.exe diff --git a/Project2/Debug/Project2.tlog/CL.command.1.tlog b/Project2/Debug/Project2.tlog/CL.command.1.tlog index 700c058..d02a696 100644 Binary files a/Project2/Debug/Project2.tlog/CL.command.1.tlog and b/Project2/Debug/Project2.tlog/CL.command.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/CL.read.1.tlog b/Project2/Debug/Project2.tlog/CL.read.1.tlog index cd5df59..a215697 100644 Binary files a/Project2/Debug/Project2.tlog/CL.read.1.tlog and b/Project2/Debug/Project2.tlog/CL.read.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/CL.write.1.tlog b/Project2/Debug/Project2.tlog/CL.write.1.tlog index bc3d373..864d760 100644 Binary files a/Project2/Debug/Project2.tlog/CL.write.1.tlog and b/Project2/Debug/Project2.tlog/CL.write.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/link.read.1.tlog b/Project2/Debug/Project2.tlog/link.read.1.tlog index f481971..97bf774 100644 Binary files a/Project2/Debug/Project2.tlog/link.read.1.tlog and b/Project2/Debug/Project2.tlog/link.read.1.tlog differ diff --git a/Project2/Debug/array_queue.obj.enc b/Project2/Debug/array_queue.obj.enc deleted file mode 100644 index 84078e7..0000000 Binary files a/Project2/Debug/array_queue.obj.enc and /dev/null differ diff --git a/array_queue.c b/array_queue.c index 598ff80..4b5b5e4 100644 --- a/array_queue.c +++ b/array_queue.c @@ -73,7 +73,7 @@ void print_array_queue(array_queue *q) printf("error :\n"); return ; } - for (int i=q->front;isize;i++) + for (int i=0;isize;i++) { printf("["); printf("%d ",q->data[i%MAX_QUEUE]); diff --git a/main.c b/main.c index dc06eb2..f59126d 100644 --- a/main.c +++ b/main.c @@ -42,11 +42,11 @@ int main(void) push_array_queue(q,2); print_array_queue(q); printf("---------------------\n"); - /* pop_array_queue(q); + pop_array_queue(q); print_array_queue(q); printf("----------\n"); push_array_queue(q, 666); - print_array_queue(q);*/ + print_array_queue(q); printf("Hello World!\n"); system("pause"); return 0;