目前分類:C++ (3)

瀏覽方式: 標題列表 簡短摘要
#include <stdio.h>
#include <future>
using namespace std;
int main()
{
        double START, END;
        START = clock();

        //      [Your code here..]

        END = clock();

        char szTime[100];
        sprintf_s(szTime, 100, "Execute time : %lf - %lf = %lf \n",END, START, END - START);
        printf_s(szTime);

        system("PAUSE");
}

文章標籤

Chris 發表在 痞客邦 留言(0) 人氣()

語法(Syntax) :

static_cast < new_type > ( expression )

Returns a value of type new_type.

文章標籤

Chris 發表在 痞客邦 留言(0) 人氣()

最近發現一些範例程式碼在定義整數 int 時寫成這樣

typedef signed int          INT32;

意思即是替 signed int 取一個別名為INT32 的新變量

文章標籤

Chris 發表在 痞客邦 留言(0) 人氣()