自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 课程设计--学生成绩管理系统

问题描述:本系统实现了学生成绩管理的功能,具有学生成绩的输入、读取、查询、修改、插入、删除、排序,统计等功能。 代码: 头文件student.h: #ifndef LINKLIST_H_INCLUDED #define LINKLIST_H_INCLUDED struct Student    //结构体 { int term;  //学期 int

2016-01-08 17:20:07 1897

原创 第四周--项目四--双链表算法库

算法库包括两个文件:   头文件:List.h,包含定义顺序表数据结构的代码、宏定义、要实现算法的函数的声明;   源文件:listp.cpp,包含实现各种算法的函数的定义             以及测试文件main.cpp List.h: #ifndef CDLINKLIST_H_INCLUDED #define CDLINKLIST_H_INCLUDED //循环双链

2015-12-18 09:09:43 308

原创 第四周-项目五猴子选大王

问题描述:一群猴子,编号是1,2,3 …m,这群猴子(m个)按照1-m的顺序围坐一圈。从第1只开始数,每数到第n个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。输入m和n,输出为大王的猴子是几号。 程序代码: #include using namespace std; struct Monkey {     int num;  //猴子的编号  

2015-12-14 17:08:52 367

原创 第四周项目三--单链表的应用

没看提示就自己做出来了,虽然水平有点低

2015-12-07 17:25:57 395

原创 第四周-项目二

//listh.h: #ifndef LINKLIST_H_INCLUDED #define LINKLIST_H_INCLUDED typedef int ElemType; typedef struct LNode        //定义单链表结点类型 {     ElemType data;     struct LNode *next;     //指向后继结点 }

2015-11-30 17:20:16 291

原创 第四周-项目一

#include #include typedef int ElemType; typedef struct LNode        //定义单链表结点类型 {     ElemType data;     struct LNode *next;     //指向后继结点 } LinkList; void CreateListF(LinkList *&L,ElemType a

2015-11-09 16:57:54 300

原创 第三周-项目4

#include"list.h" #include using namespace std; void delx2y(SqList *&L, ElemType x,  ElemType y) {     int k=0,i; //k记录非x的元素个数     ElemType t;     if(x>y)     {         t=x;         x=y;    

2015-10-26 17:28:21 268

原创 第三周-项目3求集合并集

#include #include using namespace std; #define MaxSize 50 typedef int ElemType;  //ElemType在不同场合可以根据问题的需要确定,在此取简单的int typedef struct {     ElemType data[MaxSize];  //利用了前面MaxSize和ElemType的定义

2015-10-20 11:21:51 312

原创 第三周-项目二

#include #ifndef LIST_H_INCLUDED #define LIST_H_INCLUDED #define MaxSize 50 using namespace std; typedef int ElemType; typedef struct {     ElemType data[MaxSize];     int length; } SqList;

2015-10-14 18:24:16 326

原创 第三周—项目1顺序表的基本运算

#include #include #define MaxSize 50    //Maxsize将用于后面定义存储空间的大小 typedef int ElemType;  //ElemType在不同场合可以根据问题的需要确定,在此取简单的int typedef struct {     ElemType data[MaxSize];  //利用了前面MaxSize和ElemTyp

2015-10-12 16:53:08 291

原创 项目1-函数传值的三种方式

#include #include using namespace std; //(1)传值 void myswap1(int x, int y) { int t; t=x; x=y; y=t; } //(2)传地址 void myswap2(int *p1, int *p2) { int t; t=*p1;

2015-09-21 16:37:00 522 1

转载 项目0-宣示主权

#include using namespace std; void swap(int &a,int &b) { int c; c=a; a=b; b=c; } int main() { int a,b; cin>>a>>b; swap(a,b); cout<<a<<" "<<b<<endl; return 0; }

2015-09-14 17:02:56 607

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除