C±àÂë¹æ·¶
1 ÎĵµËµÃ÷
2 Îļþ½á¹¹
2.1 ΪÁ˸üºÃµÄÀûÓÃCVSµÄÐ޸ļǼ¹¦ÄÜ£¬ÔÚcommitµÄʱºò£¬ÈÏÕæµÄÌîдÐ޸ļǼ¡£
2.2 Ϊ·ÀֹͷÎļþ±»Öظ´ÒýÓã¬Ó¦µ±ÓÃifndef/define/endif½á¹¹²úÉúÔ¤´¦Àí¿é£»
2.3 ʹÓÃ__cplusplusºê¶¨Ò壬ʹ³ÌÐò¿ÉÒÔ·½±ãµÄÒÆÖ²ÖÁC++»·¾³Ï£»
2.4 Óà #include ¸ñʽÀ´ÒýÓñê×¼¿âµÄÍ·Îļþ£¨±àÒëÆ÷½«´Ó±ê×¼¿âĿ¼¿ªÊ¼ËÑË÷£©£»
2.5 Óà #include ¡°filename.h¡± ¸ñʽÀ´ÒýÓ÷DZê×¼¿âµÄÍ·Îļþ£¨±àÒëÆ÷½«´ÓÓû§µÄ¹¤×÷Ŀ¼¿ªÊ¼ËÑË÷£©£»
2.6 ËùÓк¯Êý¶¼±ØÐëÔÚÏàÓ¦µÄÍ·ÎļþÖÐÌí¼Óº¯ÊýÔÐÍÉùÃ÷¡£
3 ³ÌÐòµÄ°æʽ
3.1 ÔÚÿ¸öº¯Êý½áÊøÖ®ºó¶¼±ØÐëÌí¼ÓÒ»¸ö¿ÕÐС£
3.2 ³ÌÐòÖлòÕߺ¯ÊýÄÚÂß¼ÉÏÃÜÇÐÏà¹ØµÄÓï¾äÖ®¼ä²»¼Ó¿ÕÐУ¬ÆäËüµØ·½Ó¦¼Ó¿ÕÐзָô¡£
3.3 Ò»ÐдúÂëÖ»×öÒ»¼þÊÂÇ飬ÈçÖ»¶¨ÒåÒ»¸ö±äÁ¿£¬»òֻдһÌõÓï¾ä¡£
3.4 if¡¢for¡¢while¡¢doµÈÓï¾ä×ÔÕ¼Ò»ÐУ¬Ö´ÐÐÓï¾ä²»µÃ½ô¸úÆäºó£»²»ÂÛÖ´ÐÐÓï¾äÓжàÉÙ¶¼Òª¼Ó{ }£¬ÕâÑù¿ÉÒÔ·ÀÖ¹ÊéдʧÎó£»
3.5 ¾¡¿ÉÄÜÔÚ¶¨Òå±äÁ¿µÄͬʱ³õʼ»¯¸Ã±äÁ¿£¨¾Í½üÔÔò£©£»
3.6 º¯ÊýÃûÖ®ºó²»ÒªÁô¿Õ¸ñ£¬½ô¸ú×óÀ¨ºÅ¡®£¨¡¯£»
3.7 ¡®£¨¡¯Ïòºó½ô¸ú£¬¡®£©¡¯¡¢¡®£¬¡¯¡¢¡®;¡¯ÏòÇ°½ô¸ú£¬½ô¸ú´¦²»Áô¿Õ¸ñ£»
3.8 ¡®£¬¡¯Ö®ºóÒªÁô¿Õ¸ñ£¬Èçfunction(x, y, z)¡£Èç¹û¡®;¡¯²»ÊÇÒ»ÐеĽáÊø·ûºÅ£¬ÆäºóÒªÁô¿Õ¸ñ£¬Èçfor(initialization; condition; update)Óï¾ä£»
3.9 ¸³Öµ²Ù×÷·û¡¢±È½Ï²Ù×÷·û¡¢ËãÊõ²Ù×÷·û¡¢Âß¼²Ù×÷·û¡¢Î»Óò²Ù×÷·û£¬Èç¡°=¡±¡¢¡°+=¡±¡¢¡°>=¡±¡¢¡°
Ïà¹ØÎĵµ£º
AndroidÔÉú(Native)C¿ª·¢£º²é¿´±àÒëÆ÷Ô¤¶¨Òåºê
http://www.csharpwin.com/dotnetspace/4102r4305.shtml
AndroidÔÉú(Native)C¿ª·¢£º±àÒëÑ¡ÏîС½á
AndroidÔÉú(Native)C¿ª·¢Ö®Ê®£ºÓÃCode::BlocksÀ´¿ª·¢
AndroidÔÉú(Native)C¿ª·¢Ö®¾Å£ºOpenGL ES³õ̽
AndroidÔÉú(Native)C¿ª·¢Ö®°Ë£ºToolchain»·¾³´î½¨Æª
AndroidÔÉ ......
[CϵÁÐ]C++³ÌÐòÔ±µÍÊÖóðÑÔ1
±à³ÌÒѾ3ÄêÁË
ÎÒʱ³£¾õµÃ£¬ Èç¹û3ÄêÇ°µÄÎÒÓÉÏÖÔÚµÄÎÒÀ´Ö¸µãµÄ»°£¬Ó¦¸ÃÓÃ3Ìì¾Í¿ÉÒÔ³öʦÁË¡£
ÎÒµÄÕâƪÎÄÕ¾ÍÊdzåÕâ¸öÄ¿µÄÀ´µÄ¡£ÔÚ½ÓÏÂÀ´Ô¶Ô¶ÉÙÓÚ3ÌìµÄƪ·ùÖУ¬ÎÒ½«´øÁì¶ÁÕß´Ó²ËÄñÒ»Ö±½úÉýµ½COM(ÒòΪÎÒ×Ô¼ºÒ²Ö»»áÕâô¶àÁË)£¬³õѧÕ߶ÁÍêºó£¬Ó¦µ±Ð¡ÓÐËù³É£¬»ù±¾ÉÏÄÜʤÈÎͨ³£¸÷ÖÖСIT¹«Ë¾µÄ³£¹æ¿ª· ......
¼òÊöCºÍC++³ÌÐòԱѧϰÀú³Ì
ÊÕ²Ø
< type="text/javascript">
document.body.oncopy = function() {
if (window.clipboardData) {
setTimeout(function() {
......
C/C++ÊÇ×îÖ÷ÒªµÄ±à³ÌÓïÑÔ¡£ÕâÀïÁгöÁË50ÃûÓÅÐãÍøÕ¾ºÍÍøÒ³Çåµ¥£¬ÕâЩÍøÕ¾Ìṩc/c++Ô´´úÂë ¡£Õâ·ÝÇåµ¥ÌṩÁËÔ´´úÂëµÄÁ´½ÓÒÔ¼°ËüÃǵÄС˵Ã÷¡£ÎÒÒѾ¡Á¦°üÀ¨×î¼ÑµÄC/C++Ô´´úÂëµÄÍøÕ¾¡£Õâ²»ÊÇÒ»¸öÍêÕûµÄÇåµ¥£¬ÄúÓн¨Òé¿ÉÒÔÁªÏµÎÒ£¬ÎÒ½«»¶ÓÄúµÄ½¨ Ò飬ÒÔ½øÒ»²½¼ÓÇ¿Õâ·½ÃæµÄÇåµ¥¡£
1¡¢http://snippets.dzone.com/tag/c/&nbs ......
main.c
//³õʼ»¯¶ÓÁÐ
void InitQueue(LiQueue *q)
{
q=(LiQueue*)malloc(sizeof(LiQueue));
q->front=q->rear=NULL;
}
//ÅжÏÊÇ·ñΪ¿Õ
int QueueEmpty(LiQueue *q)
{
if(q->rear==NULL)
{
return 1;
}
else
{
......