摘要:
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);... 阅读全文
摘要:
#include <stdio.h> #include <cmath> #include <cstring> #include <cstdio> #include <iostream> #include <algorithm> using namespace std; int a[11]; int 阅读全文
摘要:
链接 :http://codeforces.com/contest/520/problem/B code forces two buttens代码 ********************* #include <stdio.h>int main(){ int s,g,r=0; scanf("%d%d 阅读全文
摘要:
#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;} 阅读全文
摘要:
//第一种写法 #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'){ 阅读全文
摘要:
#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; 阅读全文