上一页 1 ··· 11 12 13 14 15
摘要: 1)c语言字符串:#include #include int main(int argc, char *argv[]) { char ch[] = {'a', 'b', 'c', '\0'}; char ch1[] = {'x', 'y', 'z'}; printf("%s\n", ch1);... 阅读全文
posted @ 2015-07-24 19:24 do+better 阅读(290) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <cmath> #include <cstring> #include <cstdio> #include <iostream> #include <algorithm> using namespace std; int a[11]; int 阅读全文
posted @ 2015-03-20 21:11 do+better 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 链接 :http://codeforces.com/contest/520/problem/B code forces two buttens代码 ********************* #include <stdio.h>int main(){ int s,g,r=0; scanf("%d%d 阅读全文
posted @ 2015-03-20 21:03 do+better 阅读(192) 评论(0) 推荐(0) 编辑
摘要: #include <cmath>#include <iostream>using namespace std;int main(){ int x = 2; int y = 3; cout << "2*2*2 = " << pow(x,y) << endl; return 0;} 阅读全文
posted @ 2015-01-27 13:22 do+better 阅读(7122) 评论(0) 推荐(0) 编辑
摘要: //第一种写法 #include <stdio.h> int main(){ int a[100], T, n = 0; char ch; for(scanf("%d ", &T); T; T--){ n = 0; char ch; while((ch = getchar()) != '\n'){ 阅读全文
posted @ 2015-01-27 10:56 do+better 阅读(269) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <algorithm> using namespace std; int main(){ int a[3]={1, 2, 3}; do{ for (int i = 0; i < 3; i++) cout<<a[i]; cout<<endl; 阅读全文
posted @ 2015-01-26 13:12 do+better 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15