ÈçºÎÔÚLinuxʹÓÃEclipse + CDT¿ª·¢C/C++³ÌÐò?
A. ΪʲôҪÔÚLinuxʹÓÃEclipse¿ª·¢C/C++³ÌÐò?
LinuxÊÇÒ»¸öÒÔC/C++¿ª·¢ÎªÖ÷µÄƽ̨£¬ÎÞÂÛÊÇKernel»òÊÇApplication£¬Ö÷Òª¶¼Ê¹ÓÃC/C++¿ª·¢¡£´«Í³ÔÚLinuxÏ¿ª·¢³ÌÐò£¬ÊÇÔÚÎÄ×ÖģʽÏ£¬ÀûÓÃviµÈÎÄ×Ö±à¼Æ÷׫дC/C++³ÌÐò´æÅ̺ó£¬ÔÚCommand lineÏÂʹÓÃgcc±àÒ룬ÈôÒªdebug£¬ÔòʹÓÃgdb¡£
ÕâÖÖ¿ª·¢·½Ê½Éú²úÁ¦²¢²»¸ß£¬ÈôÖ»ÊÇ¿ª·¢Ñ§Ï°ÓõÄС³ÌÐòÔòÓ°Ïì²»´ó£¬µ«ÈôÒª¿ª·¢´óÐÍÏîĿʱ£¬³ÌÐòµµ°¸¸öÊýÖڶ࣬ÐèÒªÓÃproject»òsolutionµÄ·½Ê½¹ÜÀí£»ÇÒdebugʱbreakpointµÄ¼ÓÈ룬µ¥²½Ö´ÐУ¬¹Û²ì±äÁ¿±ä»¯µÈ£¬¶¼ÐèÒª¸ü¿ÉÊÓ»¯µÄ·½Ê½²ÅÄܹ»Ôö¼ÓÉú²úÁ¦£»×îÖØÒªµÄ£¬ÓÉÓÚÏÖÔڵijÌÐòÓïÑԽԷdz£µÄÅÓ´ó£¬ÓÖÓи´Ôӵĺ¯Ê½¿â£¬Òª³ÌÐòÔ±Êì¼ÇËùÓеijÌÐòÓï·¨ºÍfunctionÃû³Æ£¬ÊµÔÚºÜÀ§ÄÑ£¬ËùÒÔÓï·¨Ìáʾ(Intellisense)µÄ¹¦Äܾͷdz£ÖØÒª£¬ÕâЩ¾Í±ØÐë¿¿IDEÀ´´ï³É¡£
ÔÚWindowsƽ̨ÉÏ£¬ÈôÒª¿ª·¢C/C++³ÌÐò£¬ÎÒÃÇÓÐMicrosoft Visual Studio¡¢Borland C++ Builder¿ÉÓã¬ÕâЩ¶¼ÊǺܺÃÓõÄIDE£¬µ«¿Éϧ½öÄÜÔÚWindowsÏÂʹÓ㬵«ÊÇÔÚLinuxƽ̨ÄØ?»ùÓÚÒÔÏÂÀíÓÉ£¬ÎÒÍƼöʹÓÃEclipse¿ª·¢C/C++³ÌÐò£º
1. EclipseÊÇÒ»¸öÓÃJavaËù׫дIDE£¬Òò´Ë¿É¿çƽ̨£¬ËùÒÔÔÚLinuxºÍWindowsƽ̨ϽԿÉʹÓÃEclipse£¬¿É½µµÍ³ÌÐòÔ±ÊìÎöIDEµÄѧϰÇúÏß¡£
2. EclipseËäÈ»Ö÷ÒªÄÃÀ´¿ª·¢Java³ÌÐò£¬µ«ÊÂʵÉÏEclipseΪһ¸ö¡ºÍòÓÃÓïÑÔ¡»µÄIDE£¬Ö»Òª¹ÒÉÏpluginºó£¬¾Í¿ÉÒÔÔÚEclipse¿ª·¢¸÷ÖÖÓïÑÔ³ÌÐò£¬ËùÒÔÎÒÃÇÖ»Òª¹ÒÉÏCDT(C/C++ Development Toolkit)ºó£¬¾Í¿ÉÒÔÔÚEclipse¿ª·¢C/C++³ÌÐò£¬³ý´ËÖ®Í⣬ĿǰµÄÖ÷Á÷³ÌÐòÓïÑÔ£¬ÈçC/C++¡¢C#¡¢Java¡¢PHP¡¢Perl¡¢Python¡¢Ruby¡¢Rebol¡¢JavaScript¡¢SQL¡¢XML¡¢UMLµÈ£¬½Ô¿ÉÔÚEclipseÉÏ׫д£¬ËùÒÔÖ»ÒªÊìÎöEclipseµÄIDE»·¾³£¬½«À´Èô¿ª·¢ÆäËüÓïÑÔ³ÌÐò£¬¾Í²»ÓÃÔÙÖØÐÂѧϰIDE»·¾³ÁË¡£
3. ×îÖØÒªµÄ£¬EclipseºÍCDTÊÇOpen SourceÇÒÍêÈ«Ãâ·Ñ£¬È¡µÃÏ൱ÈÝÒ×£¬ÊÂʵÉÏFedora 5ÒѾ°üº¬EclipseºÍCDTÁË£¬ËäȻԤÉèFedara 5°²×°Ê±²¢Ã»Óк¬Eclipse£¬Ö»ÒªÊÖ¶¯ÁíÍâ¼ÓÑ¡¼´¿É¡£
B. ÈçºÎÔÚLinuxÏ°²×°EclipseºÍCDT?
i. ÓÉLinux Distribution°²×°Eclipse£¬Fedora 5¾ÍÄÚº¬EclipseºÍCDT¡£
ii. ÊÖ¶¯°²×°
1. ÏÂÔصµ°¸
A¡¢ ÏÂÔØJRE(Java Runtime Environment) ¡£(http://java.sun.com/javase/downloads/index.jsp)
B¡¢ ÏÂÔØEclipse SDK¡£(http://www.eclipse.org/downloads/)
C¡¢ ÏÂÔØCDT¡£(http://www.eclipse.org/cdt/downloads.php)
2. °²×°
A¡¢ °²×°JRE
i. [root@localhost ~]#mkdir /
Ïà¹ØÎĵµ£º
»ùÓÚ½ø³ÌµÄÃüÁʽ²é¿´:
`ps -o pcpu,pmem,nlwp -p $PID`
#(pmem = % mem usage and nlwp is number of threads)
ÆäÖÐpcpu¶¨ÒåÊÇ:cpu utilization of the process in “##.#” format. It is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed as a ......
ijһÌì,Ò»¸ö¿Í»§´òµç»°À´ÐèÒª¼¼Êõ°ïÖú,²¢±§Ô¹Æ½³£15Ãë¾Í¿ÉÒÔ´ò¿ªµÄÍøÒ³ÏÖÔÚÐèÒª20·ÖÖӲſÉÒÔ´ò¿ª.
¾ßÌåϵͳÅäÖÃÈçÏÂ:
RedHat Enterprise Linux 3 update 7
Dell 1850 Dual Core Xenon Processors, 2 GB RAM, 75GB 15K Drives
Custom LAMP software stack(Òë×¢:Llinux+apache+mysql+php »·¾³)
ÐÔÄÜ·ÖÎöÖ®²½Öè
1. Ê×ÏÈÊ ......
ÓÉÓÚLINUX
CûÓжÔ×Ö·û´®×Ó´®Ìæ»»¹¦ÄÜ,ËùÒÔÎÒ×Ô¼ºÐ´ÁËÒ»¸östr_replaceº¯Êý,ʵÏÖÁË×Ö·û´®Ìæ»».
Çë´ó¼Ò²Î¿¼.
/*
* FUNCTION : str_replace
*
ABSTRACT : replace child string in a string.
*
PARAMETER &nbs ......
Ïë°²×°adobe reader£¬À´µ½¹Ù·½ÍøÕ¾ÏÂÔØÊÇ·¢ÏÖÓÐreader9,ËäÈ»ÊÇÓ¢ÎÄ°æµÄÏÂÏÂÀ´ÔÙ˵£¬½á¹û´ò²»¿ªÖÐÎÄÎĵµ£¬googleÁËÏ·¢ÏÖÕâôƪÎÄÕ½â¾öÁËÎÒµÄÎÊÌâ¡£²»´í£¬²»¹ýÄǸöÏÂÔØÖÐÎÄÎĵµµÄµØÖ·ÕâÀï¾ÀÕýÒ»ÏÂÊÇ£ºhttps://www.adobe.com/cn/products/acrobat/acrrasianfontpack.html
ά»¤Ô´´£¡Ô´´µ ......
ͻ񻣼
±¾ÎÄ´Ó½éÉÜ»ù´¡¸ÅÄîÈëÊÖ£¬Ì½ÌÖÁËÔÚC/C++ÖжÔÈÕÆÚºÍʱ¼ä²Ù×÷ËùÓõ½µÄÊý¾Ý½á¹¹ºÍº¯Êý£¬²¢¶Ô¼Æʱ¡¢Ê±¼äµÄ»ñÈ¡¡¢Ê±¼äµÄ¼ÆËãºÍÏÔʾ¸ñʽµÈ·½Ãæ½øÐÐÁ˲ûÊö¡£±¾ÎÄ»¹Í¨¹ý´óÁ¿µÄʵÀýÏòÄãչʾÁËtime.hÍ·ÎļþÖÐÉùÃ÷µÄ¸÷ÖÖº¯ÊýºÍÊý¾Ý½á¹¹µÄÏêϸʹÓ÷½·¨¡£
¹Ø¼ü×Ö£ºUTC£¨ÊÀ½ç±ê׼ʱ¼ä£©£¬Calendar Time£¨ÈÕÀúʱ¼ä£©£¬epoch£¨Ê±¼ä ......