摘要: #include<iostream>using namespace std;#include<string>#include<ctime>struct student{ string sname; int score;};struct teacher{ string tname; struct st 阅读全文
posted @ 2023-05-15 00:55 大虚胖子 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;void shz(int*arr,int len){ for(int i=0;i<len-1;i++) { for(int j=0;j<len-1-i;j++) { if(arr[j]<arr[j+1]) { int tem 阅读全文
posted @ 2023-05-09 23:07 大虚胖子 阅读(26) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;#include<ctime>int main(){ int arr[9]={4,2,8,0,5,7,1,3,9}; for(int i=0;i<9-1;i++) { for(int j=0;j<9-1-i;j++) { i 阅读全文
posted @ 2023-05-09 00:12 大虚胖子 阅读(40) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ for(int i=1;i<=9;i++) { for(int j=1;j<=i;j++) { cout<<i<<"*"<<j<<"="<<i*j<<" "; } cout<<endl; } syst 阅读全文
posted @ 2023-05-05 23:21 大虚胖子 阅读(14) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;#include<ctime>int main(){ srand((signed int)time(NULL)); int a=rand()%100+1; while(1) { int b=0; cin>>b; if(b>a 阅读全文
posted @ 2023-05-04 20:50 大虚胖子 阅读(23) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int score=0; cout<<"请您输入一个分数:"<<endl; cin>>score; if(score>700) { cout<<"恭喜您考上石家庄铁道大学"<<endl; } else 阅读全文
posted @ 2023-04-24 23:05 大虚胖子 阅读(22) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int a=0; cout<<a<<endl; cout<<"请输入:"; cin>>a; cout<<a; system("pause"); return 0;} 阅读全文
posted @ 2023-04-23 23:20 大虚胖子 阅读(23) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int a=10; cout<<a<<endl; cout<<!a<<endl; cout<<!!a<<endl; system("pause"); return 0;} 阅读全文
posted @ 2023-04-23 22:11 大虚胖子 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;#define Day 7int main(){ cout<<"一周有"<<Day<<"天"<<endl; const int month=12; cout<<"一年有"<<month<<"月"<<endl; system( 阅读全文
posted @ 2023-04-22 21:43 大虚胖子 阅读(37) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int a=10,b=2; cout<<"a+b="<<a+b<<endl; system("pause"); return 0;} 阅读全文
posted @ 2023-04-20 23:44 大虚胖子 阅读(36) 评论(0) 推荐(0)