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

CÓëC++µÄÇø±ð

CÊÇÒ»¸ö½á¹¹»¯ÓïÑÔ£¬ÈçÌ·ÀÏÒ¯×ÓËù˵£ºËüµÄÖصãÔÚÓÚËã·¨ºÍÊý¾Ý½á¹¹¡£C³ÌÐòµÄÉè¼ÆÊ×Òª¿¼ÂǵÄÊÇÈçºÎͨ¹ýÒ»¸ö¹ý³Ì£¬¶ÔÊäÈ루»ò»·¾³Ìõ¼þ£©½øÐÐÔËËã´¦ÀíµÃµ½Êä³ö£¨»òʵÏÖ¹ý³Ì£¨ÊÂÎñ£©¿ØÖÆ£©£¬¶ø¶ÔÓÚC++£¬Ê×Òª¿¼ÂǵÄÊÇÈçºÎ¹¹ÔìÒ»¸ö¶ÔÏóÄ£ÐÍ£¬ÈÃÕâ¸öÄ£ÐÍÄܹ»ÆõºÏÓëÖ®¶ÔÓ¦µÄÎÊÌâÓò£¬ÕâÑù¾Í¿ÉÒÔͨ¹ý»ñÈ¡¶ÔÏóµÄ״̬ÐÅÏ¢µÃµ½Êä³ö»òʵÏÖ¹ý³Ì£¨ÊÂÎñ£©¿ØÖÆ¡£
ËùÒÔCÓëC++µÄ×î´óÇø±ðÔÚÓÚËüÃǵÄÓÃÓÚ½â¾öÎÊÌâµÄ˼Ïë·½·¨²»Ò»Ñù¡£Ö®ËùÒÔ˵C++±ÈC¸üÏȽø£¬ÊÇÒòΪ“ Éè¼ÆÕâ¸ö¸ÅÄîÒѾ­±»ÈÚÈëµ½C++Ö®ÖÐ ”£¬¶ø¾ÍÓïÑÔ±¾Éí¶øÑÔ£¬ÔÚCÖиü¶àµÄÊÇËã·¨µÄ¸ÅÄî¡£ÄÇôÊDz»ÊÇC¾Í²»ÖØÒªÁË£¬´í£¡Ëã·¨ÊdzÌÐòÉè¼ÆµÄ»ù´¡£¬ºÃµÄÉè¼ÆÈç¹ûûÓкõÄËã·¨£¬Ò»Ñù²»ÐС£¶øÇÒ£¬“C¼ÓÉϺõÄÉè¼Æ”Ò²ÄÜд³ö·Ç³£ºÃµÄ¶«Î÷¡£
¶ÔÓïÑÔ±¾Éí¶øÑÔ£¬CÊÇC++µÄ×Ó¼¯£¬ÄÇôÊÇʲôÑùµÄÒ»¸ö×Ó¼¯£¿´ÓÉÏÎÄ¿ÉÒÔ¿´³ö£¬ CʵÏÖÁËC++Öйý³Ì»¯¿ØÖƼ°ÆäËüÏà¹Ø¹¦ÄÜ£¬¶øÔÚC++ÖеÄC£¨ÎÒ³ÆËüΪ“C+”£©£¬Ïà¶ÔÓÚÔ­À´µÄC»¹ÓÐËù¼ÓÇ¿£¬ÒýÈëÁËÖØÔØ¡¢ÄÚÁªº¯Êý¡¢Òì³£´¦ÀíµÈµÈÍæÒÕ¶ù£¬C++¸üÊÇÍØÕ¹ÁËÃæÏò¶ÔÏóÉè¼ÆµÄÄÚÈÝ£¬ÈçÀà¡¢¼Ì³Ð¡¢Ð麯Êý¡¢Ä£°åºÍ°üÈÝÆ÷ÀàµÈµÈ¡£
ÔÙÌá¸ßÒ»µã£¬ÔÚC++ÖУ¬Êý¾Ý·â×°¡¢ÀàÐÍÕâЩ¶«¶«ÒѲ»ÊÇʲôÐÂÏÊÊÂÁË£¬ÐèÒª¿¼ÂǵÄÊÇÖîÈ磺¶ÔÏóÁ£¶ÈµÄÑ¡Ôñ¡¢¶ÔÏó½Ó¿ÚµÄÉè¼ÆºÍ¼Ì³Ð¡¢×éºÏÓë¼Ì³ÐµÄʹÓõȵÈÎÊÌâ¡£
ËùÒÔÏà¶ÔÓÚC£¬C++°üº¬Á˸ü·á¸»µÄ“Éè¼Æ”µÄ¸ÅÄµ«CÊÇC++µÄÒ»¸ö×ÔÇ¢×Ó¼¯£¬Ò²¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬Í¬ÑùÖµµÃѧϰ¡£
¼¸µãѧϰ½¨Ò飺
1£®»ù±¾¸ÅÄîºÜÖØÒª¡£ÎÞÂÛѧC£¬»¹ÊÇѧC++£¬»ù±¾¸ÅÄÊǵÚһλµÄ£¬Ò²ÊDZȽÏÀ§Äѵģ¬µ«Ö»ÓаÑÎÕÁË»ù±¾¸ÅÄî²ÅÄÜ°ÑÎÕÕûÌåÂöÂ磬²ÅÄܾӸßÁÙÏ¡£
2£®CÊÇC++µÄ×Ó¼¯£¬ËüµÄ»ù±¾¸ÅÄîºÍÉè¼Æ·½·¨Ïà¶Ô±È½ÏÈÝÒ×Àí½â£¬³õѧÕß¿É´ÓËüÈëÊÖ¡£
3£®Èç¹ûҪѧºÃC++£¬½¨Òé³õѧÕß×îºÃ±ðÔÚÈçVC£¬BCBƽ̨ÏÂд³ÌÐò£¬ÄÇÖÖ×Ô¶¯»¯µÄ´úÂëÉú³É£¬»¨»¨ÂÌÂ̵ĽçÃ棬»áÈÃÄãÊÖ×ãÎÞ´ë¡£×îºÃÏÈÕÒһƬ¿ÕµØ£¨unix£¬dos£©£¬´ÓÍ·×öÆð£¬Ð´¼¸¸ö´óµãµÄ³ÌÐò£¬Êý¸ö»ØºÏ£¬ÔÙµ½VC£¬BCBÏ¿´¿´£¬Äã»áÇáËɵúܡ£ÔÚÎÒ¿´À´£¬Ñ§ºÃC/C++ÊdzÉΪVC£¬BCB¸ßÊֵıØÓÉ֮·¡£
4£®²»ÒªÍýÏëËٳɣ¬±ØÐëµÃÒ»¸öbyte£¬Ò»¸öbitµÄÈ¥¿Ù£¬¾¡Á¿¸ãÇå³þÿһ¸öÎÊÌâ¡£
5£®¼¸±¾ºÃÊ飺
»úе¹¤Òµ³ö°æÉçµÄÄÇÌד¼ÆËã»ú¿Æѧ´ÔÊé”´ÓCµ½C++£¬µ½ÃæÏò¶ÔÏóÉè¼Æ£¬Ò»Ó¦¾ãÈ«£¬¶¼TMDÊǾ­µäÖеľ­µä£¬¶øÇÒ¼Û¸ñ¹«µÀ£¬Í¯ÛÅÎÞÆÛ¡£
¹úÄÚÒ²Óм¸±¾ºÃÊ飬̷ÀÏÒ¯×ÓµÄÊéºÃµ¹ÊǺ㬾ÍÊdzÌÐò´íÎóÌ«¶à¡£Ç¿ÁÒÍƼöÇ廪ÖÜÖ®Ó¢µÄ¡¶ÏÖ´úÈí


Ïà¹ØÎĵµ£º

C++ÖÐʹÓÃsqlite

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include ".\sqlite3_lib\sqlite3.h"
 
static int _callback_exec(void * notused,int argc, char ** argv, char ** aszColName)
{
    int i;
    for ( i=0; i<argc; i++ )
   ......

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......

linux Ï ÓÃcÓïÑÔ´´½¨mysqlÊý¾Ý¿â±Ê¼Ç£¨¶þ£©

linux Ï ÓÃcÓïÑÔ´´½¨mysqlÊý¾Ý¿â±Ê¼Ç£¨¶þ£©
                       
£­£­£­£­£­£­£­Á½¸ö¼òµ¥µÄÀý×Ó£¬¹©²Î¿¼±È½Ï
¡¶ÀýÒ»¡·
#include <stdio.h>
#include <stdlib.h>
#include
&q ......

ɾ³ýC/C++×¢ÊÍ

/********************************************************************
*ɾ³ýC/C++×¢ÊÍ
**********************************************************************/
#include <stdio.h>
//×¢Òâ
//1.¶Ô/****/µÄ´¦Àí
//2.Òª±£ÁôË«ÒýºÅÖ®¼äµÄÄÚÈÝ£¬Èçchar* test = "/*i am not comment */";
//3.¶ÔÓ ......

C ÖÐtypedefµÄһЩʹÓÃ

1. »ù±¾½âÊÍ
¡¡¡¡typedefΪCÓïÑԵĹؼü×Ö£¬×÷ÓÃÊÇΪһÖÖÊý¾ÝÀàÐͶ¨ÒåÒ»¸öÐÂÃû×Ö¡£ÕâÀïµÄÊý¾ÝÀàÐÍ°üÀ¨ÄÚ²¿Êý¾ÝÀàÐÍ£¨int,charµÈ£©ºÍ×Ô¶¨ÒåµÄÊý¾ÝÀàÐÍ£¨structµÈ£©¡£
¡¡¡¡ÔÚ±à³ÌÖÐʹÓÃtypedefÄ¿µÄÒ»°ãÓÐÁ½¸ö£¬Ò»¸öÊǸø±äÁ¿Ò»¸öÒ×¼ÇÇÒÒâÒåÃ÷È·µÄÐÂÃû×Ö£¬ÁíÒ»¸öÊǼò»¯Ò»Ð©±È½Ï¸´ÔÓµÄÀàÐÍÉùÃ÷¡£
¡¡¡¡ÖÁÓÚtypedefÓÐʲô΢ÃîÖ®´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ