2017年3月17日

摘要: //只有90分,实在找不出哪里错了或者什么情况忽略了 #include<iostream>#include<string>using namespace std;int main(){ int a[20][5],n,i,j,k,count = 1,ok = 1; for(i=0;i<20;i++) 阅读全文
posted @ 2017-03-17 20:02 whitehouse 阅读(94) 评论(0) 推荐(0) 编辑
摘要: //100分 #include<iostream>using namespace std; typedef struct Point{ int x1,x2,y1,y2; int order; int no;};typedef struct XY{ int x,y;};int main(){ int 阅读全文
posted @ 2017-03-17 20:00 whitehouse 阅读(103) 评论(0) 推荐(0) 编辑
摘要: /*100分,注意不要滥用++,--,尤其是前置++,--很容易混乱,最好一个语句中用一次*/#include<iostream>using namespace std;int main(){ int n,i,j; cin>>n; int a[n][n]; for(i=0;i<n;i++){ for 阅读全文
posted @ 2017-03-17 19:59 whitehouse 阅读(83) 评论(0) 推荐(0) 编辑
摘要: //100分,进步的是使用了isdigit()函数判断字符是不是英文字母 #include<iostream>#include<string>#include<cctype>using namespace std;int main(){ string str; cin>>str; int a[10] 阅读全文
posted @ 2017-03-17 19:58 whitehouse 阅读(88) 评论(0) 推荐(0) 编辑

导航