上一页 1 ··· 28 29 30 31 32
摘要: 求多边形的面积 1 #include<iostream> 2 using namespace std; 3 class CPolygon{ 4 protected: 5 int width,height; 6 public: 7 void set_values(int a,int b) 8 { 9 阅读全文
posted @ 2023-04-17 19:59 Code13 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 char a,N,Y; 6 while(1){ 7 8 cout<<"现在正在下雨吗?"<<endl; 9 cout<<"请输入N或Y:"; 10 cin>>a; 11 if 阅读全文
posted @ 2023-04-13 22:03 Code13 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 int x; 6 cout<<"你考试考了多少分:"<<endl; 7 cin>>x; 8 if(x<=100&&x>=90) 9 cout<<"优"<<endl; 10 e 阅读全文
posted @ 2023-04-12 23:53 Code13 阅读(13) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32