Mike Mitchell
圖很酷
http://www.sirmikeofmitchell.com/index.php?/patterns/
但是不能用
好像要收錢
聽說寫 blog 作文才會進步
無聊到來寫看看ACM 結果錯超多
//錯誤寫法(最後面多了一個空白)
for(i = 1; i <= 5; ++i){
cout << i << " ";
}
//正確寫法
for(i = 1; i < 5; ++i){
cout << i << " ";
}
cout << i;
#ifdef ONLINE_JUDGE
void Pause() {}
istream &ccin = cin;
#else
void Pause() { system("pause"); }
string testInput(){
string str;
str += "1 2 3\n";
str += "3 2 1\n";
str += "1 2 3 4 5 6 7\n";
str += "I am input data !!\n";
return str;
}
istringstream ccin(testInput());
#endif