C/C++ѧϰӦ¸Ã×¢ÒâµÄ¼¸¸öϸ½Ú
¸øÎÒÃÇÉÏASP.NETµÄÀÏʦÔÚ½²½âC#µÄʱºò£¬×ÜÊÇҪѯÎÊÎÒÃÇC#ºÍC/C++¼äµÄ²»Í¬Ö®´¦£¬»òÕßһЩϸ½ÚÎÊÌ⣬µ«ÊÇƽʱ²»ÔõôעÒ⣬»¹Õæ°ÑÎÒÃǸøÎʵ½ÁË£¡£¡
Ò».²»¾¹ýÖмä±äÁ¿ÔõÑù½»»»Á½¸öÊý¾Ý int a=25;b=10;
½â·¨: a=a+b;//35
b=a-b;//25
a=a-b;//10
ÊDz»ÊǺÜÈÝÒ׾ͽ»»»¹ýÀ´ÁË°¡£¿\(^o^)/~
¶þ.-5%2=£¿-5%(-2)=? 5%(-2)=? ½á¹ûÓ¦¸ÃÓë±»³ýÊýµÄ·ûºÅ±£³ÖÒ»Ö£¬
ËùÒÔ½á¹ûÓ¦¸ÃΪ: -5%2=-1; -5%(-2)=-1; 5%(-2)=1;
Èý.int x=2,y=2,a=3,b=4;
ÔòÖ´ÐÐÓï¾ä:++x>++y&&a++>b++ºóx¡¢y¡¢a¡¢bµÄÖµÓ¦¸ÃÊǶàÉÙ?
Ê×ÏÈ++x: x=3,++x=3;
++y: y=3,++y=3;
Ôò3>3Ϊ¼Ù£¬ÓÉÓÚºóÃæÊÇ“&&”ÔËËã·û£¬ËùÒÔ²»Ö´ÐкóÃæµÄÓï¾ä£¬ÒòΪÒѾΪ¼ÙÁË¡£
ËùÒÔ×îÖյĽá¹ûÓ¦¸ÃΪ: x=3;y=3;a=3;b=4;
ËÄ. int x=1,y=2,z=3,n;
n=x>y?x>z?x:y:y>z?y:z>x?z:x;
ÔòÖ´ÐÐÉÏÃæµÄÓï¾äºónÓ¦¸ÃΪ¶àÉÙ°¡£¿ÕâÀï¾ÍÒª½«ÈýÄ¿ÔËËã·ûµÄ¸÷¸ö¿é¸ø»³öÀ´£¬²ÅÄܹ»ÅªÇå³þ£¬ºÃºÃµÄ·ÖÒ»·Ö°É!
½á¹û: n=3¡£
Ïà¹ØÎĵµ£º
ǰһƪÎÒÃǽéÉÜÁËÒ»¸ö¼òµ¥²»¹ýµÄhelloworld³ÌÐòÒý³öÏà¹ØÎÊÌâ¡£³Ã×Å»¹Ã»ÓÐÍüµôÄÇЩ˼¿¼·½Ê½µÄ¼ÇÒ䣬±¾Æª¼ÌÐøÑÓÐøÕâÖÖ˼ά·½Ê½µÄÀíÄ½éÉÜÒ»ÏÂCC++ÖеĻù±¾Êý¾ÝÀàÐÍ¡£Êý¾ÝÀàÐͲ»Çå³þµÄ»°ÔÚÒÔºóµÄ±à³ÌÖлáÓкܶàÃÕÍźÍÎÊÌâ¡£ÉõÖÁÒ»¸ö³ÌÐòµÄBUGÕÒ°ëÌìҲûÓÐÕÒ³öÀ´Ê±ÎªÊ²Ã´£¬½á¹û²Å·¢ÏÖÊǼӼõÒç³öÁË¡£¸ü¼ÓÑÏÖصĻ¹ÓÐдԽ½ç¡¢¶ÁÔ ......
°²×°eclipse-cpp-galileo-win32.zip
ÒÔÏÂÊÇ×îÐÂeclipse cpp ¿ª·¢IDE
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-cpp-galileo-SR1-win32.zip
ÉèÖÃmake³ÌÐò
ÉèÖÃbinary parser
н¨Ò»¸öC++¹¤³Ì
±àдͷÎļþ
±àдʵÏÖ
¸ÄдMakefile ¡ ......
MYSQLÔÚ C API ÖпÉÓõĺ¯Êý£º
mysql_affected_rows()
·µ»Ø±»×îеÄUPDATE, DELETE»òINSERT²éѯӰÏìµÄÐÐÊý¡£
mysql_close()
¹Ø±ÕÒ»¸ö·þÎñÆ÷Á¬½Ó¡£
mysql_connect()
Á¬½ÓÒ»¸öMySQL·þÎñÆ÷¡£¸Ãº¯Êý²»ÍƼö£»Ê¹ÓÃmysql_real_connect()´úÌæ¡£
mysql_change_user()
¸Ä±äÔÚÒ»¸ö´ò¿ªµÄÁ¬½ÓÉϵÄÓû§ºÍÊý¾Ý¿â¡£
mysql_ ......
C£¬C++ÍøÂç±à³Ìѧϰ¼òÃ÷Ö¸ÄÏ
1. ÔúʵµÄC£¬C++»ù´¡ÖªÊ¶
²Î¿¼×ÊÁÏ¡¶C³ÌÐòÉè¼Æ¡·£¬¡¶C++ primer¡·¡£
2. TCP/IPÐÒé
¾µäÊéÊÇ£ºW.Richard Stevens Öø¡¶TCP/IPÏê½â¡·Èý¾íÊ飬¾í1ÊÇÐÒ飬¾í2ÊÇʵÏÖ£¬¾í3ÊÇTCPÊÂÎñÐÒéµÈ¡£»¹Óйٷ½µÄÐÒéÎĵµ£ºRFC
µ±È»Ò²¿ÉÒÔÔÚÍøÉÏÏÂÔصç×ÓÊé¡£
¾µäµÄ¿ªÔ´ÐÒé·ÖÎö¹¤¾ß£ºWireshark.
......
#include <Windows.h>
#include <math.h>
#include "resource.h"
#define PI 3.1415976/180
int dwCenterX,dwCenterY,dwRadius;
const TCHAR *szAppName=TEXT("Clock");
LRESULT CALLBACK ProcWinMain(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
void ShowTime(HWND hwnd,HDC hdc);
void ......