自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 17周课后自主-项目6-1-输入学生信息输出

#includeusing namespace std;struct Student //定义结构体{ char num[13]; char name[10]; int cpp; int math; int english; int score; double avg; void

2014-12-22 10:38:55 962

原创 17周课后自主-项目四-2-计算两个日期之间差了多少天

我不知道自己怎么抽了,代码写了这么长,我正在寻找简洁的算法。。。。。。那些英文的注释和输出提示,是因为我懒得换输入法#includeusing namespace std;struct Date{ int year; int month; int day;};bool is_leap(int);int days_month(Date*,int);int

2014-12-22 10:32:35 910 1

原创 17周课后自主-项目四-1计算某年第几天

//caculate the days until the day you input#includeusing namespace std;struct Date{ int year; int month; int day;};int main(){ Date date; cout << "input year , month , day :

2014-12-22 10:29:17 514

原创 17周课后自主-项目三-胖子伤不起

//show the status of your weight#include#include#includeusing namespace std;enum status{thin_much,thin,normal,fat,fat_much};//枚举五种状态struct person //定义结构体{ string name; string sex;

2014-12-22 10:26:51 510

原创 17周课后自主-项目二-引用作形参

#includeusing namespace std;//函数原型void pSort(int *,int *,int *);void rSort(int &,int &,int &);void swap_(int &,int &);int main(){ int a,b,c; cin>>a>>b>>c; pSort(&a,&b,&c); cout<

2014-12-22 10:24:19 604

原创 17周课后自主-项目一-体会函数参数传递

#includeusing namespace std;//函数原型void fun1(int &x,int &y);void fun2(int* x,int* y);int main(){ int a,b; a = 11; b = 22; fun2(&a,&b); cout<<"a = "<<a <<"b = "<<b

2014-12-22 10:21:21 521

原创 补遗-选择排序

#include using namespace std;void select_sort(int *,int);int main(){ int num[50]; int n,i; cin>>n; for(i=0;i<n;i++) { cin>>num[i]; } select_sort(num,n); for

2014-12-16 18:39:29 557

原创 16周课后自主-项目4-动态数组

#includeusing namespace std;int main(){ int num,i,addnum; cout<<"Please enter the number of students : "<<endl; cin>>num; int *score = new int[num]; cout<<"please enter the scor

2014-12-16 18:35:42 561

原创 16周课后自主-项目三-函数指针

#includeusing namespace std;void eat();void sleep();void hitdoudou();void run(void (*f)());int main(){ int iChoice; do { cout<<"Please choose (1-eat; 2-sleep; 3-hit; other-exit;)"; cin>>

2014-12-16 18:32:06 537

原创 16周课后自主-项目二-连接字符串(实现1)

//字符串连接函数实现和测试示例#include using namespace std;char *astrcat(char str1[], const char str2[]);int main(){ char s1[50]="Hello world. "; char s2[50]="Good morning. "; char s3[50]="vegetabl

2014-12-16 18:27:56 603

原创 16周课后自主-项目1-数组排序(指针)

#include using namespace std;void sort(int *p, int num); //不要对自定义函数的声明有任何改动void output(int*, int); //形式参数的名称可以不要int main( ) //不要对main函数有任何改动{ int a[20]={86,46,22,18,77,45,32,80,26,88,57,67,

2014-12-16 18:22:45 538

原创 14周课后自主-项目4-英文字典

这个项目比较实用了哈,输入英文,输出汉语,代码let‘s go#include#include#includeusing namespace std;string english[8000],chinese[8000];int search(string,int,int);//string search(string e,int start,int end);int main()

2014-12-01 13:43:15 563

原创 14周课后自主-项目3-版本2-记录成绩(含名字)

/* *Copyright (c) 2014,烟台大学计算机学院 *All right reserved. *文件名称:main.cpp *作 者:臧云吉 *完成时间:2014年11月18日 *版 本 号:v1.0 *描 述:现在还要记录每个人的名字以及列出取得最高分的人 */ #include#include

2014-12-01 13:36:36 588

原创 14周课后自主-项目3-版本1-记录成绩(不含名字)

/* *Copyright (c) 2014,烟台大学计算机学院 *All right reserved. *文件名称:main.cpp *作 者:臧云吉 *完成时间:2014年11月18日 *版 本 号:v1.0 *描 述:用二位数组保存同学们的高数、英语、C++以及总成绩,输入三科成绩自动求出总成绩,并输出最高最低分以及平均分 */

2014-12-01 13:33:25 709

空空如也

空空如也

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

TA关注的人

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