原创 c風格命名和c++命名
今天在提問裏問了幾個大牛一個問題,大牛們說得很深,我的資質有很淺,沒辦法,我只能自己琢磨了啊,下面是正題 ///////////////////////////////////////////////////////////////
原创 JPG圖像大小計算原理解釋
JPEG From Wikipedia, the free encyclopedia For other uses, see JPEG (disambiguation). Joint Photographic Exp
原创 呵呵
http://blog.csdn.net/freshow/article/details/5672659
原创 MFC 在一個button上畫圖畫的一些方法
最近在做MFC方面的一些應用工作,成這個機會把MFC好好學學,學學沒什麼壞事,儘管MFC已經不是很方便了。 I think some of you may not like the buttons in Windows. Somet
原创 賬號回來了
有一年多沒有來這裏了,因爲賬號丟了,所以沒有和大家交流,在此高興地說:我的賬號失而復得,可喜可賀
原创 如何獲取當前時間的前N天時間格式字符串
最近做項目,有這麼一個需求:根據當前時間,得到前N天的年月日格式字符串,比如今天是2010年06月04日,那麼今天的格式字符串爲:20100604,昨天的應該爲20100603,前天的爲20100602, etc... 看到這個需求的
原创 快速排序
#include<iostream.h> // 切分數據爲左右兩個部分,返回中間元素x的編號 // 主要的過程就是:選擇一個元素x作爲分界點,將比x大的元素放到x右邊,其餘放到x左邊。int Partition (i
原创 字符串逆序(遞歸非遞歸實現)
#include<iostream.h>#include<string.h>void fun(const char *src){ const char *p=src; while(*p++!='/0') ; p--; while(p--
原创 iphone
http://www.cocos2d-iphone.org/api-ref/0.99.1/annotated.html
原创 新整理資料大全
atoi atol實現 2009-10-16 15:49 long atol(const char *nptr);函數說明:atol()會掃描參數nptr字符串,跳過前面的空格字符,直到遇上數字或正負符號纔開始做轉換,而再遇到非數字或
原创 一些實用的計算
#include<iostream.h>#include<stdio.h>#include<stdlib.h> #include <time.h> //#include <omp.h> //#define M 2800 #defi
原创 MFC類層次結構圖及倒敘
MFC結構圖http://www.cppblog.com/andxie99/archive/2008/06/04/9747.html #include<stdio.h> #include<stdlib.h>#include<string.
原创 ASCII碼錶
二進制十進制十六進制縮寫解釋 0000 0000 0 00 NUL 空字符(Null) 0000 0001 1 01 SOH 標題開始 0000 0010 2 02 STX 正文開始 0000 0011 3 03 ETX 正文結束 00
原创 BMP截屏
void CSaveBmpDlg::OnButton1() { // TODO: Add your control notification handler code here HWND hWnd =
原创 compare function overload
#include <stdio.h> #include <assert.h>int cmp_int(const void *,const void *);int cmp_doubl(const void *,const void *);i