內容
/* 這是基本的C++格式
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!" << endl;//輸出
return 0;
}
using namespace std; 告知本程式會應用到 std 命名空間裡的類別,如 cout cin 是 std 命名空間裡的物件,如未使用 using namespace std; 時使用它們需寫成 std:cout << "Hello, world!" << endl; ,若使用後只要寫成 cout << "Hello, world!" << endl;
供程式人員紀錄備忘,不會被執行
//輸出Hello, world!
會輸出Hello, world! */