ubuntu°²×°c/c++¼¯³É¿ª·¢»·¾³
Ê×ÏÈÈ·±£ÏµÍ³ÒѾ°²×°ÁËgcc/g++
1> Anjuta
´ò¿ªÖÕ¶Ë:
ÃüÁî:sudo apt-get install anjuta
£¨²»ÄÜ°²×°µÄÐèÒªÌí¼Ó°²×°Ô´
Ìí¼ÓÔ´£ºµã»÷Ö÷²Ëµ¥Éϵēϵͳ”¡·“ϵͳ¹ÜÀ픡·“Èí¼þÔ´”£¬ÊäÈëÃÜÂëºó£¬ÔÚ³öÏֵĶԻ°¿òÖе㓵ÚÈý·½Èí¼þ”£¬
“deb http://anjuta.org.sixxs.org/apt ./”
ÌùÉÏÏÂÃæÕâÒ»ÐУ¬ÔÙ°´“Ìí¼ÓÔ´”¡·“¹Ø±Õ”¡·“ÖØÐÂÔØÈ딡££©
°´ÌáʾѡÔñ½¨Òé°²×°
°²×°Íê±ÏÖ®ºó "Ó¦ÓóÌÐò-->±à³Ì-->anjuta IDE" ¾Í¿ÉÒÔʹÓà AnjutaÁË
ʹÓãº
д¸öHello World µÄC++³ÌÐò
1¡£´ò¿ªAnjuta£ºµã»÷Ö÷²Ëµ¥ÉϵēӦÓóÌÐò”¡·“±à³Ì”¡·“Anjuta IDE”¡£
2¡£½¨Á¢ÏîÄ¿£ºÔÚAnjutaÖеã»÷²Ëµ¥£¬“Îļþ”¡·“н¨”¡·“4. Project”¡£³öÏÖ“Ó¦ÓóÌÐòÏòµ¼”£¬µã“Ç°½ø”£»¹¤³ÌÀàÐÍÑ¡“C++”ÖеēGeneric C++”£¨¸½Í¼anjuta-1.png£©£¬Ö®ºóµã“Ç°½ø”£»“Ç°½ø”£»¹¤³ÌÑ¡Ïî(Project Options)ÖУ¬È«Ñ¡“·ñ”£¬ÔÙµã“Ç°½ø”£¬Ó¦Óü´¿É¡£
3¡£²é¿´Ô´Â룺µã×ó²à“¹¤³Ì”°´Å¥£¬Çл»µ½“¹¤³Ì”Ñ¡Ï¡£µã¹¤³ÌÃû“foobar-cpp”,Ë«»÷“main.cc”´ò¿ªËü£¬±à¼Æ÷Ñ¡Ôñ“Scintilla Editor”¡£
4¡£±àÒëÔËÐУº¿ÉÒÔ¿´µ½£¬main() º¯ÊýÒÑÔ¤ÏÈдºÃÁË¡£ÎÒÃÇ°´Ï“Shift+F11”±àÒ룬ÔÙ°´“F3”¾ÍÄÜÔËÐÐÁË£¡
2>Eclipse
Eclipse²»½öÊÇÓ¦ÓÃ×î¹ãµÄjava¼¯³É¿ª·¢»·¾³£¬Í¬ÑùÒ²ÊDz»´íµÄc++ ¿ª·¢»·¾³
È¥EclipseµÄ¹Ù·½ÍøÕ¾http://www.eclipse.org£¬ÏÂÔØEclipse for c++£¨Eclipse IDE for C/C++ Developers (79 MB)£©£¬Íê³Éºó½âѹÎļþ°ü£¬¿ÉÖ±½ÓʹÓ᣷½·¨²»ÔÙÖظ´¡£
ÆäËûÒ²¿É³¢ÊÔcode::block , NetbeanµÈ……
Ïà¹ØÎĵµ£º
fopen("/var/spool/cron/tmp","w+");
/////////////////////////////////////////
££i nclude <sys/types.h>
££i nclude <sys/stat.h>
££i nclude <fcntl.h>
££i nclude <unistd.h>
££i nclude <stdio.h>
££i nclude <string.h>
££i nclude <stdlib.h>
int main(){
in ......
http://www.devdiv.net/blog/space-14481-do-blog-id-458.html
ÒÔÏ·ÖÎö»ùÓÚ£º
Developer Platform :S60 3rd Edition, Feature Pack 2 SDK
Operating System :Symbian OS v9.3
Ò»£¬ÎªÊ²Ã´ÒªÊ¹ÓÃClient/Server¼Ü¹¹
ÔÚSymibian OSÖÐËùÓеÄÒì²½·þÎñ¶¼ÊÇServerͨ¹ýC/S¼Ü¹¹À´ÊµÏֵġ£ClientÊÇÀûÓÃServerÌṩµÄÌض¨· ......
±àÒëNative CµÄhello,worldÄ£¿é
Android ±àÒë»·¾³±¾Éí±È½Ï¸´ÔÓ£¬ÇÒ²»ÏñÆÕͨµÄ±àÒë»·¾³£ºÖ»Óж¥²ãĿ¼Ï²ÅÓÐMakefileÎļþ£¬¶øÆäËûµÄÿ¸öcomponent¶¼Ê¹ÓÃͳһ±ê×¼µÄ Android.mk. Android.mkÎļþ±¾ÉíÊDZȽϼòµ¥µÄ£¬²»¹ýËü²¢²»ÊÇÎÒÃÇÊìϤµÄMakefile£¬¶øÊǾ¹ýÁËAndroid×ÔÉí±àÒëϵͳµÄºÜ¶à´¦Àí£¬Òò´ËÒªÕæÕýÀ ......
exercise2.4
void squeeze(char s[],char t[])
{
int i,j,k;
int lens,lent;
lens=strlen(s);
lent=strlen(t);
for(i=0,k=0;i<lens;i++)
{
for(j=0;j<lent;j++)
if(s[i]==t[j])
break;
if(j==lent)
s[k++]=s[i];
}
s[k]='\0';
}
exercise2.5
int any(char s[],char t[ ......
12.1 λÔËËã·û£ÃÓïÑÔÌṩÁËÁùÖÖλÔËËã·û£º
& °´Î»Óë
| °´Î»»ò
^ &nb ......