原创 WS_CLIPCHILDREN和WS_CLIPSIBLINGS的區別
1. 概念 1.1. WS_CLIPCHILDREN WS_CLIPCHILDREN: Excludes the area occupied by child windows when you draw within the paren
原创 詳解std::map::erase
1. 定義 //C++98 (1) void erase (iterator position); (2) size_type erase (const key_type& k); (3) void erase (iterator
原创 std::vector::erase()
1 定義 //c++98 iterator erase (iterator position); iterator erase (iterator first, iterator last); //c++11 iterator
原创 mysql的autocommit
mysql的autocommit(自動提交)默認是開啓,其對mysql的性能有一定影響。 舉個例子來說: 如果你插入了1000條數據,mysql會commit1000次的; 如果我們把autocommit關閉掉,通過程序來控
原创 clock()與time()區別
1. clock clock_t clock (void); Clock program Returns the processor time consumed by the program. The value return
原创 mysql_real_escape_string()--mysql數據庫
1. 函數原型 unsigned long mysql_real_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length) 注意:
原创 Catch Bug
1. Makefie與環境變量 編譯某一源碼時,我直接把LIBRARY_PATH,和LD_LIBRARY_PATH寫在Makefile裏,並自作聰明地加上了export。 這導致系統根本找不到庫的路徑。 //原因 系統環境變量可
原创 宏定義SIG_DFL及SIG_IGN
來源 #define SIG_DFL ((void (*) (int)) 0) *語句A* #define SIG_IGN ((void (*) (int)) 1) #define SIG_ERR ((void (*) (
原创 bcopy和memcpy、bzero和memset、bcmp和memcmp的差別
1. 關係 (1)頭文件都爲:#include 2. 詳細比較 (1)memset 原 型: void *memset(void *s, char ch, unsigned n); 功 能:將s所指向的某一塊內存中的每個字節
原创 小端與大端的判斷和轉換
1. 概念 MSB:Most Significant Bit ------- 最高有效位 LSB:Least Significant Bit ------- 最低有效位 大端模式(big-edian) big-endia
原创 find命令錯誤提示路徑必須在表達式之前
1、問題 $touch test1.c test2.c text3.txt $ls //當前目錄下有三個文件 test1.c test2.c text3.txt $find . -iname *.txt ./tex