2013年12月26日

cpoint

摘要: 1 #include 2 #include 3 using namespace std; 4 class CPoint 5 { 6 public: 7 int cpoint() 8 { 9 x = 0;10 y = 0;11 return 0;12 }13 int cpoint(double a , double b)14 {15 x=a;16 y=b;17 return 0;18 }19 double GetX()20 {21 ... 阅读全文

posted @ 2013-12-26 16:52 了发发 阅读(285) 评论(0) 推荐(0)

change

摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 double a; 6 cin>>a; 7 cout11 #include12 #define pi 3.141513 using namespace std;14 int main()15 {16 int conver(double & a,double & b);17 int conver(double a,double b,double c[]);18 double a=0,b=0;19 double c[2]={0,0};2... 阅读全文

posted @ 2013-12-26 16:51 了发发 阅读(114) 评论(0) 推荐(0)

band

摘要: 1 #include 2 #include 3 using namespace std; 4 int calculate(double amount[],int year,double rate,double in[],double p[],double* m,double * t) 5 { 6 double mon,tot,mr; 7 int mm,k; 8 mm = year * 12; 9 mr = rate / mm;10 m = & mon;11 t = & tot;12 mon = amount[0] * mr* pow(1... 阅读全文

posted @ 2013-12-26 16:47 了发发 阅读(205) 评论(0) 推荐(0)

age

摘要: 1 #include 2 #include 3 #define pi 3.14 4 using namespace std; 5 int main() 6 { 7 int computeday(int y[],int m[],int day[]); 8 double compute_physiological_index(int d); 9 double compute_emotional_index(int d);10 double compute_mentality_index(int d);11 int year[2];12 int mo... 阅读全文

posted @ 2013-12-26 16:46 了发发 阅读(145) 评论(0) 推荐(0)

acount

摘要: 1 #include 2 using namespace std; 3 class account 4 { 5 public: 6 int de( int i, double b, double a) 7 { 8 id = i; 9 balance = b;10 annuleinterestrate = a;11 return 0;12 }13 int visit( int b)14 {15 switch (b)16 { 17 case 1:... 阅读全文

posted @ 2013-12-26 16:44 了发发 阅读(379) 评论(0) 推荐(0)

wage

摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 double wage1,wage2,time; 6 cout>time>>wage1; 8 wage2=0; 9 if(time>60)10 wage2=(time-60)*3*wage1+20*wage1*1.5+40*wage1;11 else if(time>40)12 wage2=(time-40)*1.5*wage1+40*wage1;13 else14 wage2=time*wa... 阅读全文

posted @ 2013-12-26 16:42 了发发 阅读(110) 评论(0) 推荐(0)

code

摘要: 1 #include 2 #include 3 typedef struct LNode 4 { 5 int code,number; 6 struct LNode * next; 7 }LNode,* LinkList; 8 int Insert_L(LinkList L) 9 {10 int n;11 LNode * s,* p;12 printf("Please Input the number:\n"); //输入参与人数n;13 scanf("%d",& n);14 printf("Please In... 阅读全文

posted @ 2013-12-26 16:40 了发发 阅读(151) 评论(0) 推荐(0)

score

摘要: 1 #include 2 using namespace std; 3 class student{ 4 public: 5 int Input() 6 { 7 for(i=0;i>number[i];11 for(j=0;j>score[i][j];13 }14 return 0;15 }16 17 int calculateall()18 {19 for(i=0;i>n;66 cout<<"The class's average is: "<<stu1.... 阅读全文

posted @ 2013-12-26 16:37 了发发 阅读(216) 评论(0) 推荐(0)

transport

摘要: #includeusing namespace std;int transport(int a){ int d=0; if(a0) { a=a*10+1; d--; } return a;}int main(){ int a,b; cin>>a; b=transport(a); if(b==0) cout<<"error!"<<endl; else cout<<b<<endl; return 0;} 阅读全文

posted @ 2013-12-26 16:32 了发发 阅读(119) 评论(0) 推荐(0)

const

摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 float a,c; 6 float const b=1.60934; 7 cin>>a; 8 c=a/b; 9 cout<<c<<endl;10 return 0;11 } 阅读全文

posted @ 2013-12-26 16:27 了发发 阅读(97) 评论(0) 推荐(0)

导航