锘??xml version="1.0" encoding="utf-8" standalone="yes"?> ASCII 瀹藉瓧絎?/strong> 甯歌 鍙傛暟鐨勫彉鏁頒釜鏁?/strong> 鏍囧噯鐗?/p>
sprintf swprintf _stprintf 鏈澶ч暱搴︾増 _snprintf _snwprintf _sntprintf Windows鐗?/p>
wsprintfA wsprintfW wsprintf 鍙傛暟鏁扮粍鐨勬寚閽?/strong> 鏍囧噯鐗?/p>
vsprintf vswprintf _vstprintf 鏈澶ч暱搴︾増 _vsnprintf _vsnwprintf _vsntprintf Windows鐗?/p>
wvsprintfA wvsprintfW wvsprintf 緗戦〉涓轟粈涔堟墦寮閫熷害鎱紵 1\internet閫夐」-->楂樼駭--鍚敤絎笁鏂規祻瑙堝櫒鎵╁睍鐨勫嬀鍘繪帀 IE鎵撳紑緗戦〉閫熷害鎱㈠彲鑳介殣钘忔湁鎭舵剰騫垮憡紼嬪簭銆?
3.#ifdef UNICODE
typedef WCHAR TCHAR, * PTCHAR ;
typedef LPWSTR LPTCH, PTCH, PTSTR, LPTSTR ;
typedef LPCWSTR LPCTSTR ;
#else
typedef char TCHAR, * PTCHAR ;
typedef LPSTR LPTCH, PTCH, PTSTR, LPTSTR ;
typedef LPCSTR LPCTSTR ;
#endif
4.Windows鍑芥暟鍛煎彨
int WINAPI MessageBox (HWND, LPCSTR, LPCSTR, UINT) ;
娉ㄦ剰錛屽嚱鏁扮殑絎簩涓佺涓変釜鍙傛暟鏄寚鍚戝父鏁板瓧絎︿覆鐨勬寚閽?br>5.Windows鐨勫瓧絎︿覆鍑芥暟
ILength = lstrlen (pString) ;
pString = lstrcpy (pString1, pString2) ;
pString = lstrcpyn (pString1, pString2, iCount) ;
pString = lstrcat (pString1, pString2) ;
iComp = lstrcmp (pString1, pString2) ;
iComp = lstrcmpi (pString1, pString2) ;
6.鍦╓indows涓嬌鐢╬rintf
char szBuffer [100] ;
sprintf (szBuffer, "The sum of %i and %i is %i", 5, 3, 5+3) ;
puts (szBuffer)
鏍煎紡鍖栨秷鎭
紼嬪簭2-1 SCRNSIZE
SCRNSIZE.C
/*---------------------------------------------------------------------------
SCRNSIZE.C -- Displays screen size in a message box
(c) Charles Petzold, 1998
----------------------------------------------------------------------------*/
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
int CDECL MessageBoxPrintf (TCHAR * szCaption, TCHAR * szFormat, ...)
{
TCHAR szBuffer [1024] ;
va_list pArgList ;
// The va_start macro (defined in STDARG.H) is usually equivalent to:
// pArgList = (char *) &szFormat + sizeof (szFormat) ;
va_start (pArgList, szFormat) ;
// The last argument to wvsprintf points to the arguments
_vsntprintf ( szBuffer, sizeof (szBuffer) / sizeof (TCHAR),
szFormat, pArgList) ;
// The va_end macro just zeroes out pArgList for no good reason
va_end (pArgList) ;
return MessageBox (NULL, szBuffer, szCaption, 0) ;
}
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
int cxScreen, cyScreen ;
cxScreen = GetSystemMetrics (SM_CXSCREEN) ;
cyScreen = GetSystemMetrics (SM_CYSCREEN) ;
MessageBoxPrintf ( TEXT ("ScrnSize"),
TEXT ("The screen is %i pixels wide by %i pixels high."),
cxScreen, cyScreen) ;
return 0 ;
}
]]>
濡備綍瑙e喅IE鎵撳紑閫熷害鎱㈢殑闂
濡備綍瑙e喅IE鎵撳紑閫熷害鎱㈢殑闂
濡傛灉涓鐩撮兘鏄繖鏍鳳紝鏈夊嚑縐嶅彲鑳斤細
1銆佸彲鑳藉洜涓轟綘鐨勬満瀛愰厤緗笉琛岋紙搴旇鑰冭檻鍗囩駭涓涓嬬‖浠訛級錛?
2銆佸彲鑳芥槸浣犳帴鍏ョ殑甯﹀涓嶅锝炰笂緗戦熷害鎱€傚鏋滄槸鏈榪戞墠榪欐牱鐨勶細
濡傛灉鏄渶榪戞墠榪欐牱鐨勶紝鍙兘鏄細
1銆佸彲鑳芥槸涓瘨浜嗭紝浣犲彲浠ュ湪“浠誨姟綆$悊鍣?#8221;鏌ユ壘鍙枒鐨勪笢瑗匡紱鎴栬呯敤“涓婄綉鍔╂墜”鍒嗘瀽澶勭悊錛?
2銆佸彲鑳芥槸浣犵殑紜洏鍙敤絀洪棿涓嶈凍錛屽簲璇ヨ繘琛岀鐩樻竻鐞嗕簡錛?
3銆佸彲鑳芥槸浣犵殑“INTERNET涓存椂鏂囦歡”澶浜嗭紝鑰冭檻娓呯悊錛?
4銆佹槸涓嶆槸浣犳墦寮鐨勭綉欏靛お澶т簡錛熶綘鍙互鍙墦寮鏂囧瓧錛?
5銆佷綘鐨勬祻瑙堝櫒鍑洪棶棰樹簡錛屽簲璇ヤ慨澶嶆垨鑰呭皾璇曞叾浠栫殑嫻忚鍣紝姣斿鑵捐TT錛屽偛娓革紝鐏嫄絳夈?
鍙︼紝涓浜涙伓鎰忎唬鐮佷篃鍙兘浼氬獎鍝嶆墦寮緗戦〉閫熷害銆?
2\鎺у埗闈㈡澘->娣誨姞/鍒犻櫎紼嬪簭
鎶婄▼搴忓悕瀛楅噷闈㈠嚒鏄湁"鍔╂墜""鎼滅儲""search"絳夊瓧鐨勪竴寰嬪嵏杞?
3\internet閫夐」->鍒犻櫎鏂囦歡-鍒犻櫎鎵鏈夎劚鏈哄唴瀹瑰嬀涓?鍚庣偣紜畾
4\鎶?721涓婄綉鍔╂墜涔熷嵏杞戒簡
閲嶆柊娉ㄥ唽IE欏癸紝淇IE娉ㄥ唽銆?
浠庡紑濮?>榪愯
杈撳叆鍛戒護regsvr32 actxprxy.dll 紜畾
杈撳叆鍛戒護regsvr32 shdocvw.dll 紜畾
閲嶆柊鍚姩錛屼笅杞藉弽闂磋皪涓撳鏌ユ湁娌℃湁ADWARE錛宻pyware錛屾湪椹瓑騫剁敤鍏禝E淇鍔熻兘淇IE鍜屾敞鍐岃〃錛岀敤嫻佹皳杞歡鏉鎵嬫竻闄や竴浜涢毦鍗歌澆鐨勭綉绔欐彃浠躲?
]]>
1.SELECT * form 琛ㄦ槑
閫夋嫨鎵鏈夌殑榪欎釜琛?br>2.select i_name,i_age from form
閫夋嫨瀛楁鍚嶆潵鑷粈涔堣〃
3.select * from info where v_cip=true
where 鏉′歡
4.select * from info where v_cip=true and i_age>30
妯$硦鏌ヨ
1.select * from info where i_name like '*灝?'
2銆俿elect * from info where i_name like '?灝?'
絎簩涓瓧絎︽槸灝?br>3.
*浠h〃澶氫釜瀛楃
?浠h〃涓涓瓧絎?br>4.select top 2 * from info
鎺掑簭order
1.asc姝f帓搴?br>2.desc鍊掓帓搴?br>3.select * from info order by i_sex asc,i_age desc
4.<>涓嶇瓑浜?br> 榪炴帴
1.select * from info,user where user.u_id=info.i_uid
鎻掑叆
insert into user(u_user,u_code)
value ('fif','test')
淇敼update form
1.update info
set i_age=I_age+1
2.update info
set i_age=20 i_vip=flase
where i_vip=true
鍒犻櫎
1.delete form
where 鏉′歡
濡傛灉娌℃湁where灝卞垹闄よ〃涓墍鏈夊厓绱?br>鍒楀瓙
delete from info where i_age=20