- 博客(9)
- 收藏
- 关注
原创 课程设计(工资管理系统)
#include #include #include #include using namespace std; struct jishujingli //职工信息结构体定义 { char name[10]; //职工姓名 int level; //业绩等级 i
2014-06-21 11:32:15 2888 2
原创 十二周
1 #include using namespace std; struct student { long num; char name[20]; float score[3]; }; void print(student stu); int main() { student stu; cout<<"
2014-06-21 11:30:03 424 1
原创 第九周作业
习题1 #include using namespace std; int main() { int a[10]={2,4,6,8,10,12,14,16,18,20}; int *p[10]={&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],&a[7],&a[8],&a[9]}; for(int i=0;i<10;i++) cou
2014-05-25 19:11:27 496 1
原创 第七周
二.1 #include #include using namespace std; double squ(double x) //定义函数 { double s1,s2; s1=0.5*(1.0+x); do { s2=s1; s1=(s2+x/s2)*0.5; //开方运算 } while(fabs(s2-s1)>1.0E-6)
2014-04-22 13:09:55 501 1
原创 第六周作业
例4.4冒泡法 #include #include using namespace std; int main() { int a[10]; int i,j,t; cout<<"please input 10 number:\n"; for(i=0;i<10;i++) cin>>a[i]; cout<<"the number are:"; for(i=0;i<10;i++)
2014-04-14 23:58:45 513 1
原创 第四周作业第二版
6猴子偷桃 #include using namespace std; int main() { int n=1,i; //i为天数 for(i=10;i>1;i--) { n=(n+1)*2; } cout<<"猴子第一天摘了"<<n<<"个苹果"<<endl; return 0; }
2014-04-07 22:35:00 510 2
原创 第四周作业
第一题 5求自然对数 #include using namespace std; int main() { int i=0; double value=1,fac=1; while(fac>=10e-6) { i++; fac=fac/i; value+=fac; } cout<<"e="<<value<<endl; return 0; } 6 #inc
2014-03-30 23:22:34 435 1
原创 第三周作业
求三角形周长和面积 /************************************** ** 功能:求三角形的周长和面积 *** **************************************/ #include #include using namespace std; int main() { double a,b,c,disc,s,
2014-03-23 21:03:00 759 2
原创 第二周c++作业
1.编写调式运行第一个C++程序,要求输出你的班级、姓名和学号; /************************************** ** 功能:显示输出班别姓名学号 ** **************************************/ #include //编译预处理命令 using namespace std;
2014-03-16 17:41:45 539 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人