摘要: 项目地址: https://github.com/zhengze/student_manage.git 学生信息由结构体+单链表存储,链表相对于数组可以动态扩容,不浪费空间,非常高级。 顺便说一下,火爆的比特币底层也是基于链表来存储数据。 1. c++学生管理系统(一) 2. c++学生管理系统(二 阅读全文
posted @ 2021-01-30 09:32 琵琶真的行 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 新建main.cpp 1 #include<iostream> 2 #include "student.h" 3 4 using namespace std; 5 6 void printMenu() { 7 cout << "**********************************" 阅读全文
posted @ 2021-01-30 09:26 琵琶真的行 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 新建student.cpp,实现student.h声明的所有函数 1 #include<iostream> 2 #include "student.h" 3 4 using namespace std; 5 6 void displayStudent(Student *stu_head) { 7 S 阅读全文
posted @ 2021-01-30 09:23 琵琶真的行 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 新建student.h 1 #include<iostream> 2 #include<string> 3 4 using namespace std; 5 6 struct Student { 7 string no; 8 string name; 9 string sex; 10 int age 阅读全文
posted @ 2021-01-30 09:20 琵琶真的行 阅读(381) 评论(0) 推荐(0) 编辑