Time of Update: 2014-08-11
標籤:ar amp new c++ type ef har 測試 #include "stdafx.h"typedef int (*func)(int,int);class data{public:data(){a=12;b=1
Time of Update: 2014-08-11
標籤:blog http os io 資料 for 2014 ar #include "iostream.h"#define MAXSIZE 10typedef struct queue{ int
Time of Update: 2014-08-11
標籤:style blog http color 使用 os io 檔案 每種語言系統都會提供IO操作的類庫,用於對預定義類型資料進行輸入輸出的操作。C++也是如此,它是以位元組流的形式實現的。在輸入操作時,位元
Time of Update: 2014-08-11
標籤:style blog http color 使用 os io 檔案 Linux/Unix 平台下共用庫(Shared Library)檔案尾碼 .so;在 Windows 平台稱為動態連結程式庫(Dynamic
Time of Update: 2014-08-11
標籤:art ar div new c++ log size har
Time of Update: 2014-08-11
標籤:des style blog http color 資料 2014 ar 1, a++與++a 2,int a[10] ;int* p = (int*)(&a + 1 ) ;&a 是數組指標,
Time of Update: 2014-08-11
標籤:blog http os io strong for art ar windows開發環境下用VC++6.0 對unicode 、utf-8、 gb2312
Time of Update: 2014-08-11
標籤:style color 使用 os io 檔案 資料 for 連結上一篇日誌,下面介紹下C++裡面的其他內容 補充上一屆裡面的異常處理代碼: try { cout << "try
Time of Update: 2014-08-10
標籤:鏈表 人事 管理 c語言 int menu(){printf("請按提示輸入完成操作!\n"); printf("1.查詢員工資訊\n"); printf("2.統計員工數量\n"); printf("3.錄入員工資訊\n");
Time of Update: 2014-08-10
標籤:const c++ 在c++中,const是這麼一個東西:如果你希望能夠有一些東西是別人不能修改的,這個時候const就起作用了。const 在使用方式如下:a.修飾常量const int a;int const a; 這裡不論const放什麼位置,效果其實都一樣的。b.修飾指標:const double
Time of Update: 2014-08-10
標籤:靜態初始化 順序 這兩天項目代碼中遇到一個很疑惑的問題,問題可以描述為:一個靜態成員初始化的時候直接core掉,該靜態成員初始化時通過另外一個檔案中靜態成員來完成。該問題同樣發生在全域對象上。該問題可以描述為今天要討論的:變數的靜態初始化順序。具體可以用代碼簡述如下://test1.cpp#include <string>std::string a = "tes
Time of Update: 2014-08-10
標籤:style blog http color java 使用 os io 如果試圖直接使用C++的成員函數作為回呼函數將發生錯誤,甚至編譯就不能通過。其錯誤是普通的C++成員函數都隱含了一個傳遞函數作為參數,亦即&ldquo
Time of Update: 2014-08-10
標籤:style color io ar line amp size rgb 輸入一個英文句子,翻轉句子中單詞的順序,但單詞內字元的順序不變。句子中單詞以空格符隔開。
Time of Update: 2014-08-10
標籤:style blog http color 使用 io strong 資料 在C#中數組,ArrayList,List都能夠儲存一組對象,那麼這三者到底有什麼樣的區別呢。數組 數組在C#
Time of Update: 2014-08-11
標籤:style blog for art ar div 代碼 時間 接觸委託 代理 delegate很久啦。除了看API,Kotoba也給我講了
Time of Update: 2014-08-11
標籤:style blog http color 使用 io strong art 在C#中,所有的東西都是對象。因此任何常數也是一個整型對象。這裡用到了as,as是C#語言裡面的一個關鍵字。as運算子類似於類型轉換,所不同的是
Time of Update: 2014-08-10
標籤:blog http os io strong 檔案 for art 雖然微軟早已經建議在WINDOWS中用註冊表代替INI檔案,但是在實際應用中,INI檔案仍然有用武之地,尤其現在綠色軟體的流行,越來越多的程式將自己的一些
Time of Update: 2014-08-10
標籤:style color os io 檔案 new size res 常見並常用的stream一共有檔案流(FileStream),記憶體流(MemoryStream),壓縮流(GZipStream),加密流(CrypToS
Time of Update: 2014-08-10
標籤:os io 資料 for ar 時間 amp ios #include<iostream>#include<cstdio>#include<cstring>using
Time of Update: 2014-08-10
標籤:快速冪模數求a^b%c,(1 <= a,b <= 2^62, 1 <= c <= 10^9)最基本的快速冪_LL mod_exp(_LL a, _LL b, int c){ _LL ans = 1; _LL t = a%c; while(b) { if(b&1) ans = ans*t%c; t = t*t%c; b >>= 1; }