Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 910 | Rev 915 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

//C++標準函式庫
//讓程式可以執行系統命令
//讓程式可以使用 rand() 函式
#include<cstdlib>

//C語言的標準函式庫
#include<stdio.h>

//讓程式可以使用標準 I/O
#include<iostream>

//讓程式可以使用 setprecision()
#include<iomanip>

//讓程式可以使用檔案讀寫
#include<fstream>

//讓程式可以使用c語言的字串
#include<string.h>

//讓程式可以使用 strtok
#include<cstring>

//讓程式可以使用 std::numeric_limits
#include<limits>         

//可以使用time()
#include<ctime>

//讓程式可以使用系統時間
#include<time.h>

//讓程式可以使用C語言的數學涵式
#include<math.h> 

//讓程式可以使用vector:
#include<vector>

//讓程式可以使用ostringstream來將數值轉換成string
#include<sstream>

//匯入演算法函式庫
#include<algorithm>

//讓程式可以使用map物件
#include<map>

//讓程式可以使用set物件
#include<set>

//使用命名空間,避免重複輸入std::
using namespace std;
        
//主程式開始
int main(int argc, char* argv[]){
        
        //執行系統命令
        system(argv[1]);

        //回傳0,表示程式正確結束
        return 0;
        
        }//主程式結束