上一页 1 ··· 49 50 51 52 53
摘要: #include <iostream> #include <iomanip> using namespace std; int main() { char A,D,S,Q,ch; while(ch!='Q') { cout<<"Menu:A(dd) D(elete) S(ort) Q(uit),Se 阅读全文
posted @ 2023-04-15 18:43 记得关月亮 阅读(34) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int main() { int n; cout<<"你考试考了多少分?(0-100)"; cin>>n; if(n>=90&&n<=100) cout<<"优"; if(n>=8 阅读全文
posted @ 2023-04-14 15:24 记得关月亮 阅读(14) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int main() { char n; cout<<"现在正在下雨吗?(请输入Y或N)"; cout<<endl; cin>>n; if(n=='Y') cout<<"现在正在下 阅读全文
posted @ 2023-04-13 15:40 记得关月亮 阅读(15) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; void f(int a,int b) { int c; if(b) { c=a%2; a/=2; f(a,b-1); cout<<c; } } int main() { unsi 阅读全文
posted @ 2023-04-12 15:37 记得关月亮 阅读(22) 评论(0) 推荐(0)
摘要: #include<iostream> #include <iomanip> using namespace std; int main() { int sum=0; int i,j; cin>>j; char a[20]; cin>>a; for(i=0;a[i]!=0;i++) { sum=(su 阅读全文
posted @ 2023-04-11 19:41 记得关月亮 阅读(16) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 int x,y,count=0; 5 int a[20]; 6 scanf("%d",&x); 7 while(x/2) 8 { 9 a[count++]=x%2; 10 x/=2; 11 }//循环结束 12 a[co 阅读全文
posted @ 2023-04-10 20:44 记得关月亮 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53