- 博客(8)
- 收藏
- 关注
原创 c++课程作业
#include #include #include #include using namespace std; class Student //通过定义一个类来定义数据录入的函数 { char name[20]; char number[20]; float maogai,modian,shudian,cpp,english,average,sum; int ta
2014-06-20 23:43:51
597
1
原创 第六章作业
x#include using namespace std; int main() { int a[10]; int i; for(i=0;i<10;i++) a[i]=i*2+2; { cout<<a[i]<<'\t'; if((i + 1) % 5 == 0) cout<<endl; } return 0; }
2014-04-23 00:34:04
464
1
原创 第三周c++作业
习题五/******************************** ****功能:求自然对数e的近似值*** ********************************/ #include #include using namespace std; int main() { int i,j; double e=1,s=1;
2014-04-10 23:54:16
462
2
原创 第三周作业
作业第二题 /********************************************** ** 计算三角形的面积以及周长 ** ** 自动化1124曾树彪 ** **********************************************/ #include #inc
2014-03-27 20:49:43
474
2
原创 第三周作业
第一道例题/********************************* ** 功能:布尔类型使用举例 ** *********************************/ #include using namespace std; int main() { bool flag = true; cout<<flag<<endl; cout<<boolalpha<<fl
2014-03-27 20:37:29
367
2
原创 c++作业
答思考题 程序:程序是指用程序设计语言描述的,适合计算机执行的指令序列。 工程:就是为达成一个目标或完成一项任务而建立的文件集合,其中包含所有为完成此任务而建立的所有文件。 源文件:是未经编译的,按照一定的程序设计语言规范书写的人类可读的文本文件。(C++中.cpp文件) 目标文件:指存放源文件经编译器处理后产生的代码的文件(即.obj文件)。 执行文件:可由操作系统直接执行的文件,由目标
2014-03-18 00:31:57
473
2
原创 c++作业
/************************************ ** 功能:求两个数的最大值 ** ************************************/ #include using namespace std; int max(int x,int y) { int t; if(x>y) t=x; else t=y; retur
2014-03-18 00:30:51
387
1
原创 c++作业
/********************************** *** 功能:输出班级、姓名、学号**** **********************************/ #include using namespace std; int main() { cout<<"班级:自动1124班\n"; cout<<"姓名:曾树彪\n"; cout<<"学号:20121163
2014-03-17 19:25:49
433
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人