摘要: #include<iostream>using namespace std;int ReadScore(long num[],float score[]){ int n=-1; for(int j=0;j<30;j++) num[j]=0; for(int i=0;i<30;i++) { cout<<"请输入学号:"; cin>>num[i]; cout<<"输入成绩:"; cin>>score[i]; cout<<endl; n++; if(score[i]<0) 阅读全文
posted @ 2012-12-06 15:58 呆到久时自然萌 阅读(200) 评论(2) 推荐(0) 编辑
摘要: #include <iostream>#include <ctime>using namespace std;double jiafa(double a,double b);int main(){ srand (time(0)); double a,b,n,i,score=0; cout<<"答对有十分,答错没有分。满分100分。亲~加油!"<<endl; for (i = 0; i < 10; i++) { a = rand() % 999 + 1; b = rand() % 999 + 1; cout << 阅读全文
posted @ 2012-12-06 15:57 呆到久时自然萌 阅读(165) 评论(1) 推荐(0) 编辑