- 博客(7)
- 收藏
- 关注
原创 班级学生成绩管理系统C++
#include #include #include #include using namespace std; char press;int choose;int n; class Student {public: int num; string name; int bj; char sex; float Math; float English; fl
2014-06-21 22:21:54 2302 1
原创 第八章作业
书上例题 8.1 #include using namespace std; struct date { int month; int day; int year; }; struct student { int num; char name[20]; struct date brithday; char addr[30]; }; int main(
2014-05-23 09:15:52 461 1
原创 第七周作业
5.1 #include using namespace std; void display() { cout<<"This is an example."<<endl; } int main() { display(); return 0; }
2014-05-04 09:46:43 827 1
原创 第五周作业
例题4.1 数组元素的引用 #include using namespace std; int main() { int a[10]; int i; for(i=0;i<10;i++) a[i]=i*2+2; for(i=0;i<10;i++) { cout<<a[i]<<endl; cout<<endl; } return 0; }
2014-04-15 22:03:03 823 1
原创 第四周作业
首先是书本上的编程题 1.求自然对数e的近似值。 /******求自然对数e的近似值******/ #include using namespace std; int main() { double i=1.0,e=1.0; /***赋值i=1.0,e=1.0***/ int n=1; for(i>=1E-6;n++;) { i=i/n; e+=i; }
2014-04-01 20:29:41 516 1
原创 第三周作业
(1)首先的是书上的例题作业 首先的是例题2.1 因为这周的作业有点多,而且现在还不太熟练,所以我的例题都没有改动的地方,打算有空的时候再去尝试改一下,还有一个疑问。。。程序运行的那个黑框是怎么弄到这博客上面的??? #include #include using namespace std; int main() { bool flag=tr
2014-03-23 11:21:54 496 1
原创 自动化1121何永佳第二周作业
实验作业: 1、编写调试运行第一个c++程序,要求输出班级、姓名、学号。 [cpp] view plaincopy /********************************* *** 功能:输出班级、姓名、学号**** *********************************/ #include using namespace std;
2014-03-16 21:47:05 522 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人