Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C/C++Êý×éÃûÓëÖ¸ÕëÇø±ðÉî²ã̽Ë÷

C/C++Êý×éÃûÓëÖ¸ÕëÇø±ðÉî²ã̽Ë÷
 
×÷ÕߣºËᦻª e-mail:21cnbao_AT_21cn.com [AT -> @]
1. ÒýÑÔ
Ö¸ÕëÊÇC/C++ÓïÑÔµÄÌØÉ«£¬¶øÊý×éÃûÓëÖ¸ÕëÓÐÌ«¶àµÄÏàËÆ£¬ÉõÖÁºÜ¶àʱºò£¬Êý×éÃû¿ÉÒÔ×÷ΪָÕëʹÓá£ÓÚÊǺõ£¬ºÜ¶à
³ÌÐòÉè¼ÆÕ߾ͱ»¸ãºýÍ¿ÁË¡£¶øÐí¶àµÄ´óѧÀÏʦ£¬ËûÃÇÔÚC ÓïÑԵĽÌѧ¹ý³ÌÖÐÒ²´íÎóµÃ¸øѧÉú½²½â£º“Êý×éÃû¾ÍÊÇÖ¸Õ딡£
ºÜÐÒÔË£¬ÎҵĴóѧÀÏʦ¾ÍÊÇÆäÖÐÖ®Ò»¡£Ê±ÖÁ½ñÈÕ£¬ÎÒÈÕ¸´Ò»ÈյؽøÐÐ×ÅC/C++ÏîÄ¿µÄ¿ª·¢£¬¶øÉí±ß»¹Ò»Ö±³äÂúÕâÑùµÄ
³ÌÐòÔ±£¬ËûÃDZ£Áô×Å“Êý×éÃû¾ÍÊÇÖ¸Õ딵ÄÎó½â¡£
2. ħ»ÃÊý×éÃû
Çë¿´³ÌÐò£¨±¾ÎijÌÐòÔÚWIN32 ƽ̨ϱàÒ룩£º
1. #include <iostream.h>
2. int main(int argc, char* argv[])
3. {
4. char str[10];
5. char *pStr = str;
6. cout << sizeof(str) << endl;
7. cout << sizeof(pStr) << endl;
8. return 0;
9. }
2.1 Êý×éÃû²»ÊÇÖ¸Õë
ÎÒÃÇÏÈÀ´ÍÆ·­“Êý×éÃû¾ÍÊÇ2.1 Êý×éÃû²»ÊÇÖ¸Õë
ÎÒÃÇÏÈÀ´ÍÆ·­“Êý×éÃû¾ÍÊÇÖ¸Õ딵Ä˵·¨£¬Ó÷´Ö¤·¨¡£
Ö¤Ã÷ Êý×éÃû²»ÊÇÖ¸Õë
¼ÙÉ裺Êý×éÃûÊÇÖ¸Õ룻
Ôò£ºpStr ºÍstr ¶¼ÊÇÖ¸Õ룻
ÒòΪ£ºÔÚWIN32 ƽ̨Ï£¬Ö¸Õ볤¶ÈΪ4£»
ËùÒÔ£ºµÚ6 Ðк͵Ú7 ÐеÄÊä³ö¶¼Ó¦¸ÃΪ4£»
ʵ¼ÊÇé¿öÊÇ£ºµÚ6 ÐÐÊä³ö10£¬µÚ7 ÐÐÊä³ö4£»
ËùÒÔ£º¼ÙÉè²»³ÉÁ¢£¬Êý×éÃû²»ÊÇÖ¸Õë
2.2 Êý×éÃûÉñËÆÖ¸Õë
ÉÏÃæÎÒÃÇÒѾ­Ö¤Ã÷ÁËÊý×éÃûµÄÈ·²»ÊÇÖ¸Õ룬µ«ÊÇÎÒÃÇÔÙ¿´¿´³ÌÐòµÄµÚ5 ÐС£¸ÃÐгÌÐò½«Êý×éÃûÖ±½Ó¸³Öµ¸øÖ¸Õ룬ÕâÏÔµÃÊý×éÃûÓÖµÄÈ·ÊǸöÖ¸Õ룡
ÎÒÃÇ»¹¿ÉÒÔ·¢ÏÖÊý×éÃûÏÔµÃÏñÖ¸ÕëµÄÀý×Ó£º
1. #include <string.h>
2. #include <iostream.h>
3. int main(int argc, char* argv[])
4. {
5. char str1[10] = “I Love U”;
6. char str2[10];
7. strcpy(str2,str1);
8. cout << “string array 1: ” << str1 << endl;
9. cout << “string array 2: ” << str2 << endl;
10. return 0;
11. }
±ê×¼C ¿âº¯Êýstrcpy µÄº¯ÊýÔ­ÐÎÖÐÄܽÓÄɵÄÁ½¸ö²ÎÊý¶¼Îªchar ÐÍÖ¸Õ룬¶øÎÒÃÇÔÚµ÷ÓÃÖд«¸øËüµÄÈ´ÊÇÁ½¸öÊý×éÃû£¡
º¯ÊýÊä³ö£º
string array 1: I Love U
string array 2: I Love U
Êý×éÃûÔÙÒ»´ÎÏÔµÃÏñÖ¸Õ룡
¼ÈÈ»Êý×éÃû²»ÊÇÖ¸Õ룬¶øΪʲôµ½´¦¶¼°ÑÊý×éÃûµ±Ö¸ÕëÓã¿ÓÚÊǺõ£¬Ðí¶à³ÌÐòÔ±µÃ³öÕâÑùµÄ½áÂÛ£ºÊý×éÃû£¨Ö÷£©ÊÇ£¨Î½£©
²»ÊÇÖ¸ÕëµÄÖ¸Õ루±ö£©¡£
Õû


Ïà¹ØÎĵµ£º

»ªÎªC/C++±ÊÊÔÌâ(¸½´ð°¸)

http://www.teecool.com/post/2007081104.html
ÄÚÈÝÕªÒª£º1.д³öÅжÏABCDËĸö±í´ïʽµÄÊÇ·ñÕýÈ·, ÈôÕýÈ·, д³ö¾­¹ý±í´ïʽÖÐ aµÄÖµ(3·Ö)
int a = 4;
(A)a += (a++); (B) a += (++a) ;(C) (a++) += a;(D) (++a) += (a++);
¹Ø¼ü´Ê£ºCÓïÑÔÃæÊÔÌâ  C++ÃæÊÔÌâ  »ªÎªÃæÊÔÌâ  
±¾ÎĵØÖ·£ºhttp:// ......

Cµ½»ã±àµÄÏêϸ½²½â

»ã±à½ÒÃØCÓïÑÔÖеIJÎÊý´«µÝÎÊÌâ[zz]
ÎÄÕÂ×÷Õߣºcook702
ºÜ¶àѧϰ»ã±àµÄÅóÓÑÏë±Ø¶ÔCÒ²±È½ÏÁ˽⣬ÒòΪÔÚµ±Ç°´óѧµÄ¿Î³ÌÌåϵÀËüºÜÓпÉÄܾÍÊÇÄã½Ó´¥µ½µÄµÚÒ»Ãűà³ÌÓïÑÔ¡£ÓÉÓÚ¶Ô¼ÆËã»úµÄÀí½â²»¹»£¬Ñ§Ï°Ê±±Ø¶¨»áÓö
µ½¸÷ÖÖÎÊÌâ¡£ÓÐЩÎÊÌâÊÇÄãͨ¹ý˼¿¼¾Í¿ÉÒÔ½â¾öµÄ£¬¶ø¸ü¶àµÄÎÊÌâÔòÊÇÄãÎÞ´Ó˼¿¼£¬¾ÍºÃÏñËüÌìÉú¾ÍÊÇÕâÑù£¬ÄãÖ»Ò ......

ÔÚWindowsÏÂÉèÖÃNetBeansµÄC/C++»·¾³

NetBeansÌṩÁËÒ»¸öºÜºÃµÄC/C++¿ª·¢»·¾³£¬Õâ¸ö¿ª·¢»·¾³ÊÇ»ùÓÚGCC±àÒëÆ÷£¬ËùÒÔÔÚWindowsÉÏÊÇÐèҪͨ¹ýÅäÖòÅÄÜʹÓÃNetBeansµÄC/C++ƽ̨¡£
ÅäÖÃÖ»ÓÐÈý²½£º
1¡¢ÏÂÔØMinGWºÍMSYS
2¡¢ÅäÖÃMSYSµÄ»·¾³±äÁ¿
3¡¢ÔÚNetBeansÖÐÅäÖÃC/C++ƽ̨
-------------------------
µÚÒ»²½£ºÏÂÔØMinGWºÍMSYS
Ê×ÏÈÐèÒªÏÂÔØMinGWºÍMSYS£¬MinGWÊ ......

[¼¼Êõѧϰ]C++ XML¿â£¨×ªÔØ£©

ÔÚC++ÖУ¬¿âµÄµØλÊǷdz£¸ßµÄ¡£C++Ö®¸¸ Bjarne StroustrupÏÈÉú¶à´Î±íʾÁËÉè¼Æ¿âÀ´À©³ä¹¦ÄÜÒªºÃ¹ýÉè¼Æ¸ü¶àµÄÓï·¨µÄÑÔÂÛ¡£ÏÖʵÖУ¬C++µÄ¿âÃÅÀà·±¶à£¬½â¾öµÄÎÊÌâÒ²ÊǼ«Æä¹ã·º£¬¿â´ÓÇáÁ¿¼¶µ½ÖØÁ¿¼¶µÄ¶¼ÓС£²»ÉÙ¶¼ÊÇÈÃÈËÑÛ½ç´ó¿ª£¬Òà»òÊÇÍû¶øÉú̾µÄ˼ά½Ü×÷¡£ÓÉÓÚ¿âµÄÊýÁ¿·Ç³£ÅӴ󣬶øÇÒÏÞÓÚ±ÊÕßˮƽ£¬ÆäÖкܶಢ²»Á˽⡣ËùÒÔÎÄÖ ......

AES/DES c¼Ó½âÃÜÊÕ²Ø

#1Â¥ µÃ·Ö£º0»Ø¸´ÓÚ£º2009-12-26 15:37:26
¼ÓÃÜÓкܶàÖÖ·½·¨.ͬʱC#Ò²ÌṩÁ˺ܶà¼ÓÃÜ·½·¨.ÄãÐèÒª¼ÓÃܺͽâÃÜÔÚ¼ÓÃÜËã·¨ÉÏÐèҪʹÓöԳƼÓÃÜ.ÎÒ¸øÄãÌṩһ¸ö¼òµ¥µÄËã·¨.ÔÚ±£´æµÄʱºò¿ÉÒÔʹÓöþ½øÖƵķ½Ê½À´±£´æµ½Îļþ.
C# code
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ