Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 915 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 liveuser 1
//C++標準函式庫,讓程式可以執行系統命令
2
#include<cstdlib>
3
 
4
//C語言的標準函式庫
5
#include <stdio.h>
6
 
7
//讓程式可以使用標準 I/O
8
#include<iostream>
9
 
10
//讓程式可以使用 setprecision()
11
#include<iomanip>
12
 
13
//讓程式可以使用檔案讀寫
14
#include<fstream>
15
 
16
//讓程式可以使用系統時間
17
#include<time.h>
18
 
19
//讓程式可以使用c語言的字串
20
#include<string.h>
21
 
22
//讓程式可以使用 std::numeric_limits
23
#include<limits>   
24
 
25
//使用命名空間,避免重複輸入std::
26
using namespace std;
27
 
28
//主程式開始
29
int main(){
30
 
31
	//錯誤的語法
32
	cout<<abc<<endl;
33
 
34
	//回傳0,表示程式正確結束
35
	return 0;
36
 
37
	}//主程式結束