C++範例程式 ch2-2

程式碼轉載自:C++物件導向程式設計 (作者:古頤榛)

[code]
#include <cstdlib>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
cout << "紅葉晚蕭蕭,長亭酒一瓢。" << endl; //輸出字串游標移到下一行
cout << "殘雲歸太華,疏雨過中條。" << endl; //輸出字串游標移到下一行
cout << "樹色隨關迥,河聲入海遙。" << endl; //輸出字串游標移到下一行
cout << "帝鄉明日到,猶自夢漁樵。" << endl; //輸出字串游標移到下一行
system("PAUSE");
return EXIT_SUCCESS;
}

[/code]