ubuntu c/c++ IDE(¿ª·¢»·¾³)
Ç°ÑÔ ²»¶ÏÓÐÍøÓѽ«±àÒëÆ÷ GCC ÎóÈÏΪ IDE£¨¼¯³É¿ª·¢»·¾³£©
ÆÚÍûÍÑÀëÃüÁîÐÐ
ÆÚÍûÄÜÔڲ˵¥Öз¢ÏÖÆäÉíÓ°
ÆÚÍûÆäÄÜÓÐÒ»¸ö¼¯±à¼±àÒëÁ´½Óµ÷ÊÔÔËÐÐÓÚÒ»ÌåµÄ½çÃæ
¹Ê±¾Îĸø´ó¼Ò¼òµ¥ÂÞÁÐһЩ C/C++ ±à³ÌÖпÉÓÃµÄ IDE£¬»òÐíÄã´ÓÖпÉÒÔÕÒÒ»¸öÄãϲ»¶µÄ¡£
Ϊ±ÜÃâÒÔÏÂij¸öÈí¼þ°²×°Ê±²»×Ô¶¯°²×° build-essential ²»·ÁÏÈÖ´ÐУº
sudo apt-get install build-essential
anjuta Anjuta DevStudio µÄ¹Ù·½µØÖ·£ºhttp://anjuta.sourceforge.net/
AnjutaÊÇÒ»¸öC/C++ IDE£¬Ëü×î´óµÄÌØÉ«ÊÇÁé»î£¬Í¬Ê±´ò¿ª¶à¸öÎļþ£¬ÄÚǶ´úÂ뼶µÄµ÷ÊÔÆ÷(µ÷ÓÃgdb)£¬Ó¦ÓóÌÐòÏòµ¼£¨Application widzards£©¿ÉÒÔ·½±ãµÄ°ïÖúÄã´´½¨GNOME³ÌÐò¶ø²»ÐèÒªÄã×Ô¼ºÐ´Ò»Ð©ÓëÄãÐËȤÎ޹صĴúÂë¡£
°²×°·½·¨£º
sudo apt-get install anjuta
²Î¿¼£º
LinuxÏÂÓÃAnjutaд¸öHello World µÄC++³ÌÐò¾¹Èç´Ë¼òµ¥£¡
kdevelop KDevelop Project µÄ¹Ù·½µØÖ·£ºhttp://www.kdevelop.org/
KDevelop-Projectµ®ÉúÓÚ1998Ä꣬ÆäÄ¿µÄÊÇΪKDEÌṩһ¸öÒ×Óõļ¯³É¿ª·¢»·¾³(Integrated Development Environment)¡£´Ëºó£¬KDevelop IDE²ÉÓÃGPL½øÐз¢²¼£¬ËüÖ§³ÖºÜ¶à ³ÌÐòÉè¼ÆÓïÑÔ¡£
°²×°·½·¨£º
sudo apt-get install kdevelop
²Î¿¼£º
KDevelopɨäÌû
geany &n
Ïà¹ØÎĵµ£º
qtĬÈϵıà³ÌÓïÑÔΪC++ÓïÑÔ¡£Èç¹ûÄãÓÃqt±àÒë.cÎļþ£¬»á³öÏÖÕÒ²»µ½CÓïÑÔµÄĬÈÏÍ·ÎļþµÈ´íÎó£¨È磺stdio.hµÈ£©¡£qtÖв»Ö§³Ö
extern "C"{}µÄÕâÖÖд·¨£¬ÎÒÇ°¼¸ÌìÓÐÒ»¸öC³ÌÐòÐèÒªÒÆÖ²µ½QtµÄ¹¤³ÌÖУ¬±¾Ï£ÍûÖ±½Óextern "C"¾ÍokÁË£¬µ«·¢ÏÖqt4¾ÓÈ»²»Ö§³ÖÕâÖÖд·¨¡£ÎҵijÌÐòÖÐÓõ½Á˺ü¸¸ölinuxϵͳͷÎļþ£¬ÊÇÏò´®¿Ú·¢Ö¸ÁîÖ®ÀàµÄ³ÌÐò ......
¼ÙÉèÎÒÃÇʹÓÃmysql_real_queryÖ´ÐÐÁËÒ»ÌõsqlÓï¾äÖ®ºó£¬·µ»ØֵΪ·Ç0Öµ£¬´ó¼Ò¶¼ÖªµÀÕâÊÇÕâÌõÓï¾äÖ´Ðгö´í£¬µ«ÊÇÎÒÃÇÏë
Á˽âµØ¸üÏêϸµãµÄ»°£¬¾¿¾¹ÊÇʲôÔÒòµ¼ÖÂÁËÕâ¸ö´íÎóÄØ£¿Õâʱºò¾ÍµÃÓÃÉÏmysqlÌṩµÄÁíÍâÒ»¸öAPI£ºmysql_errno¡£
mysql_errno»áÌṩ×î½üÒ»´Îµ÷ÓõÄC API³ö´íµÄÐÅÏ¢£¨²»¼ûµÃÿ¸öAPI¶¼»á¶ÔÕâ¸öerrno½øÐÐÉèÖ ......
תCºÍ»ã±à»ìºÏ±à³Ì
.dataÊdzõʼ»¯µÄÊý¾Ý¿é¡£ÕâЩÊý¾Ý°üÀ¨±àÒëʱ±»³õʼ»¯µÄglobleºÍstatic±äÁ¿£¬Ò²°üÀ¨×Ö·û´®¡£
Á¬½ÓÆ÷½«OBJs¼°LIBsÎļþµÄ.data½áºÏ³ÉÒ»¸ö´óµÄ.data¡£local±äÁ¿ÒÔ·ÅÔÚÒ»¸öÏßÐԵĶÑÕ»ÖУ¬
²»Õ¼.dataºÍ.bssµÄ¿Õ¼ä¡£ºÍ.textÒ»Ñù£¬Êý¾Ý¿éÊÇÒÔÃ÷ÎĵÄÐÎʽ´æ·ÅÔÚÎļþÖеġ£ÎÞ·¨·ÀÖ¹¶ÔÆäÎïÀíµÄÐ޸ġ£
.bssÇøÊÇ´æ· ......
±êÇ©£º
it
·ÖÀࣺC/C++
ÎҵĻØÒäºÍÓÐȤµÄ¹ÊÊ --- C/C++ʥսƪ
Àîά
------------------------------------------------------------------------------------------
ÉùÃ÷
ÒÔϵÄÕâƪÎÄÕÂÄÚÈÝÊÇÎÒ¸öÈ˵ĻØÒäÒÔ¼°¿´·¨£¬Ã»ÓÐÈκÎÌرðµÄÆ«¼û£¬Ðí¶àµÄÊÂÇéÊǸù¾ÝÎҵļÇÒäÒÔ¼°´ÓÐí¶àÈ˵ÄËß˵ÖеÃÖªµÄ£¬Ò²ÐíÄÚÈݲ»ÊÇ°Ù·Ö ......
ODBCºÍIDAPIÖ®Õù
µ±MicrosoftÔÚÖ𽥵Ļ÷°ÜËûµÄ¾ºÕù¶ÔÊÖ£¬²¢ÇÒÓµÓÐÁ˴󲿷ÝPCÊý¾Ý¿âÊг¡Ö®ºó£¬±ãÂýÂýµÄÁ˽⵽ÕÆÎÕ±ê×¼µÄÖØÒªÐÔ¡£´ËÍâMicrosoftΪÁËͳһ¸÷Ó¦ÓóÌÐòÖ®¼ä²»Í¬×ÊÁϵĴæÈ¡£¬Òò´Ë¿ªÊ¼Öƶ¨´æÈ¡×ÊÁϵÄͳһ±ê×¼-ODBC¡£Microsoft¸ü´óµÄÄ¿µÄÊÇΪÁË×¼±¸ºÍÃé×¼ÏÂÒ»³¡µÄ´óÕ½£¬ÄǾÍÊÇPCÉϵÄRDBMS²úÆ·¡£µ±È»Microsoft Ҫһͳ ......