摘要: #include<bits/stdc++.h>using namespace std;int main(){ int erBaiwu; int i=0; while(scanf("%d", &erBaiwu)) { i++; if(erBaiwu==250) break; } cout << i; 阅读全文
posted @ 2017-08-09 21:32 diamondDemand 阅读(135) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h>using namespace std;int main(){ int n; cin >> n; char sex[n]; double stature[n]; for(int i=0; i<n; i++) { cin >> sex[i] >> stat 阅读全文
posted @ 2017-08-09 21:28 diamondDemand 阅读(432) 评论(0) 推荐(0)
摘要: cin.getline(a, 3)只会向数组a中读进2个字符; #include <iostream>#include <stdio.h>#include <stdlib.h>#include <string.h> using namespace std; int main(){ int n; ch 阅读全文
posted @ 2017-08-09 19:55 diamondDemand 阅读(167) 评论(0) 推荐(0)
摘要: printf输出格式控制#include #include #include #include using namespace std; int main() { double a, b; cin >> a >> b; cout << a; printf("/"); if(b==0) { cout << "0=Error... 阅读全文
posted @ 2017-08-09 16:51 diamondDemand 阅读(256) 评论(0) 推荐(0)
摘要: 姥姥出题,绝不随意,某个人的名字以.开头,我能说什么呢#include #include #include #include using namespace std; int main() { char peopleName1[11]; char peopleName2[11]; char peopleName3[11]; memset(people... 阅读全文
posted @ 2017-08-09 16:31 diamondDemand 阅读(330) 评论(0) 推荐(0)
摘要: ac代码: #include <iostream>#include <string.h>using namespace std; int main(){ int n; cin >> n; int m, a[1001], propertyTag; memset(a, 0, sizeof(a)); fo 阅读全文
posted @ 2017-08-09 11:46 diamondDemand 阅读(150) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/ZefengYao/p/6644240.html #define _CRT_SECURE_NO_DEPRECATE#include<iostream>#include<algorithm>#include<cstring>using namespa 阅读全文
posted @ 2017-08-09 10:55 diamondDemand 阅读(104) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<math.h>#include <iostream>#include <string.h>using namespace std;int main(){ int n; char ch; cin >> n >> ch; char a[40000]; 阅读全文
posted @ 2017-08-09 08:42 diamondDemand 阅读(142) 评论(0) 推荐(0)