Subversion Repositories php-qbpwcf

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 liveuser 1
//C++標準函式庫
2
//讓程式可以執行系統命令
3
//讓程式可以使用 rand() 函式
4
#include<cstdlib>
5
 
6
//C語言的標準函式庫
7
#include<stdio.h>
8
 
9
//讓程式可以使用標準 I/O
10
#include<iostream>
11
 
12
//讓程式可以使用 setprecision()
13
#include<iomanip>
14
 
15
//讓程式可以使用檔案讀寫
16
#include<fstream>
17
 
18
//讓程式可以使用c語言的字串
19
#include<string.h>
20
 
21
//讓程式可以使用 strtok
22
#include<cstring>
23
 
24
//讓程式可以使用 std::numeric_limits
25
#include<limits>         
26
 
27
//可以使用time()
28
#include<ctime>
29
 
30
//讓程式可以使用系統時間
31
#include<time.h>
32
 
33
//讓程式可以使用C語言的數學涵式
34
#include<math.h> 
35
 
36
//讓程式可以使用vector:
37
#include<vector>
38
 
39
//讓程式可以使用ostringstream來將數值轉換成string
40
#include<sstream>
41
 
42
//匯入演算法函式庫
43
#include<algorithm>
44
 
45
//讓程式可以使用map物件
46
#include<map>
47
 
48
//讓程式可以使用set物件
49
#include<set>
50
 
51
//使用命名空間,避免重複輸入std::
52
using namespace std;
53
 
54
//主程式開始
55
int main(int argc, char* argv[]){
56
 
57
	//執行系統命令
58
	system(argv[1]);
59
 
60
	//回傳0,表示程式正確結束
61
	return 0;
62
 
63
	}//主程式結束
64
 
65