
wrong_name.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <iostream> using namespace std; int main( void ) { // 變數 string 用到跟程式庫相同的識別字 char string[] = { 'h' , 'e' , 'l' , 'l' , 'o' }; cout << endl; cout << string << endl; cout << endl << endl; return 0; } /* 檔名: wrong_name.cpp 作者: Kaiching Chang 時間: 2014-5 */ |
exercise0501.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream> using namespace std; int main( void ) { int 2m = 1; cout << endl; cout << 2m << endl; cout << endl << endl; return 0; } /* 檔名: exercise0501.cpp 作者: Kaiching Chang 時間: 2014-5 */ |
exercise0502.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream> using namespace std; int main( void ) { int __ = 1; cout << endl; cout << __ << endl; cout << endl << endl; return 0; } /* 檔名: exercise0502.cpp 作者: Kaiching Chang 時間: 2014-5 */ |
exercise0503.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include <iostream> using namespace std; int main( void ) { int apple num = 1; cout << endl; cout << apple num << endl; cout << endl << endl; return 0; } /* 檔名: exercise0503.cpp 作者: Kaiching Chang 時間: 2014-5 */ |
the end

沒有留言:
張貼留言