01 2015 档案

摘要:#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 阅读(7216) 评论(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 阅读(308) 评论(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 阅读(119) 评论(0) 推荐(0)