From 004db03148b375374fa633dd07a6179cddaa91d6 Mon Sep 17 00:00:00 2001
From: Jdhggg <24016020834@stu.nsu.edu.cn>
Date: Fri, 25 Apr 2025 21:50:01 +0800
Subject: [PATCH] =?UTF-8?q?vs2022=20=E5=8F=8A=20make=20=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-Authored-By: Jdhggg <111557398+Jdhggg@users.noreply.github.com>
---
Project2.vcxproj | 2 ++
Project2.vcxproj.filters | 6 ++++++
linked_queue.h | 2 +-
main.c | 8 +++++++-
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/Project2.vcxproj b/Project2.vcxproj
index 451a113..9556046 100644
--- a/Project2.vcxproj
+++ b/Project2.vcxproj
@@ -23,6 +23,7 @@
+
@@ -31,6 +32,7 @@
+
diff --git a/Project2.vcxproj.filters b/Project2.vcxproj.filters
index 45faa74..652c5cc 100644
--- a/Project2.vcxproj.filters
+++ b/Project2.vcxproj.filters
@@ -33,6 +33,9 @@
源文件
+
+ 源文件
+
@@ -50,5 +53,8 @@
头文件
+
+ 头文件
+
\ No newline at end of file
diff --git a/linked_queue.h b/linked_queue.h
index b80aa41..85ada84 100644
--- a/linked_queue.h
+++ b/linked_queue.h
@@ -12,7 +12,7 @@ typedef struct linked_queue
{
struct node* front;
struct node* rear;
- int size;
+ int size;
}link_queue;
// ʼ
diff --git a/main.c b/main.c
index f7647ee..34d99db 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,12 @@
#include
#include
#include
+#include "linked_queue.h"
+
+
+
+
+
int main(void)
{
@@ -98,7 +104,7 @@ int main(void)
printf("----------\n");
push_array_queue(q, 666);
print_array_queue(q);*/
- /* link_queue* q = init_link_queue();
+ /* link_queue* q = init_link_queue();
push_link_queue(q, 1);
push_link_queue(q, 2);
push_link_queue(q, 3);