C/C++ӦƸ×ܽá[ÌرðÍƼö¸ø´óÈýµÄѧµÜѧÃÃÃÇ]
¸ãÈí¼þÊÇÓиãÍ·µÄ
——×ÞÆî·å
2009Äê12ÔÂ3ÈÕ
ÉùÃ÷£ºËù˵µÄÖ»Õë¶ÔC¡¢C++¡¢.NETרҵµÄͬѧ£¬¶ÔÆäËûרҵҲÐíûÓвο¼¼ÛÖµ£¡
[ÍƼö¸ø´óÈýµÄѧµÜѧÃÃÃÇ]
¡¾»¶Ó¸÷λÅóÓѲ¹³ä¡¿
¶ÔÎÒ¸öÈ˶øÑÔ£¬´óѧ±ÏÒµÕÒ¹¤×÷ËãÊÇ»ÉÏÁËÒ»¸öÐí¶àÈËÏÛĽ£¬µ«ÎÒ×Ô¼ºÈÔ¸ÐÒź¶µÄ¾äºÅ¡£ÕÒ¹¤×÷ÆÚ¼äÎÒ¾ÀúµÄºÜ¶àÊÂÇ飬ÈÃÎÒѧµ½Á˺ܶ࣬Ҳ³É³¤Á˺ܶࡣ
ÎҺʹó¼ÒÒ»Ñù£¬Í¬ÑùÊǾÀú¹ý¸ß¿¼£¬È»ºó¾Àú¹ý´óѧ¼¸ÄêµÄѧϰ£¬×îÖÕÒ²ºÍ´ó¼ÒÒ»Ñù×ß³öУÃÅ×ß½øÉç»á¡£ÕÒ¹¤×÷ÆÚ¼ä¾ÀúµÄºÜ¶àÊÂÇ飬Ҳ×ܽá³öÁ˺ܶණÎ÷£¬¾õµÃ¶ÔÕýÔÚÕÒ¹¤×÷µÄͬѧ¡¢ÅóÓÑÒÔ¼°ÌرðÊÇ´¦ÓÚÃÔãÆڵĴóÈýµÄѧµÜѧÃÃÃÇ»òÐíÓÐЩ°ïÖú¡£¸Ð¾õ²»Ð´³öÀ´£¬²»¸æËßÆäËûºÍÏàËƾÀúµÄÅóÓÑ£¬ÄÇÌ«¿Éϧ¡¢Ì«ÀË·ÑÁË¡£ÒòΪÎÒ¾õµÃÕâÊÇÒ»±Ê²Æ¸»£¬Ò»±Ê´ó¼Ò¿ÉÒÔ¹²Í¬·ÖÏíµÄ²Æ¸»£¡
ÓɽñÄêÕÐƸµÄ×ÜÌåÇé¿öÀ´¿´£¬ÕÐÏúÊÛºÍITµÄ±È½Ï¶à£¬µ«Ñ§ITÏà¹ØרҵµÄͬѧ´¦ÓÚ³¬±¥ºÍ״̬£¬ËùÒÔ¾ºÕùҲʮ·Ö¼¤ÁÒ£¬ÍùÍù»á³öÏÖÒ»¸öÈË¿ÉÒÔÄúܶàOFFER£¬¶øºÜ¶àÈËÈ´Ò»¸öOFFER¶¼Ã»ÓУ¨¼´£¬Ê§ÒµµÄÒ²¶à£¡£©¡£´Ó¹¤×ÊˮƽÀ´¿´£¬´ÓÊÂITÐÐÒµµÄÔ±¹¤¹¤×ʱÈÆäËûÐÐÒµµÄ¹¤×ÊÒª¸ßºÜ¶à¡£ITÐÐÒµÖÐÓÖ·ÖÕÐÈí¼þ¿ª·¢ÈËÔ±ºÍÈí¼þ²âÊÔÈËÔ±£¬ÆäÖÐÈí¼þ¿ª·¢ÈËÔ±µÄ¹¤×ÊÒª¸ßһЩ£¬Èí¼þ²âÊÔµÄÐèÇóÁ¿Ò²ºÜ´ó£¨¹¤×ʵ±È»Ò²Í¦¸ßµÄ£©¡£½¨ÒéITÀàÅ®Éú¿ÉÒÔÈ¥¶à¶àѧϰ¹ØÓÚ²âÊÔ·½ÃæµÄ֪ʶ£¨×îºÃºÍÒѾÕÒµ½¸Ã·½Ïò¹¤×÷µÄѧ½ã½»Á÷һϣ©£¬ÒòΪ¿ª·¢Ààְλ¼¸ºõ²»ÕÐÅ®ÉúµÄ£¬µ«²âÊÔÕÐÅ®ÉúºÜ¶à£¡£¡£¡
.NETÏà¹ØְλËƺõ¶¼´¦ÓÚ±¥ºÍ״̬£¬ÍùÍùÊÇһЩ±È½ÏСµÄ¹«Ë¾ÕÐÒ»µã£¬¶øÇÒ¸øµÄ¹¤×ʶ¼±È½ÏµÄµÍ£¡µ«²»¹ÜÊÇ´ó¹«Ë¾»¹ÊÇС¹«Ë¾£¬¶ÔC/C++µÄÐèÇóÁ¿¶¼ºÜ´ó£¬¶øÇÒ¹¤×ʸøµÄÒ²±È½Ï¸ß£¬¶øÇÒ½øÈëµÄÍùÍù¶¼Êǹ«Ë¾µÄºËÐÄÑз¢²¿ÃÅ£¡
ÏÖÔÚÎÒÃÇÑÔ¹éÕý´«£¬¹«Ë¾ÕÐƸC/C++¹¤³ÌʦÖ÷Òª»á¿¼Õ⼸·½ÃæµÄÄÚÈÝ£ºÏÂÃæÎҾ͸ø´ó¼Ò·ÖÎöÒ»ÏÂÕ⼸ÃŹ«Ë¾Òª¿¼µÄÖ÷ÒªÄÚÈÝ£¬²¢ÍƼöһЩ×ÊÁϸø´ó¼Ò£¡
¢Ù C/C++£ºÖ÷Òª¿¼´ó¼ÒµÄ»ù´¡ÖªÊ¶£¡È磺±àÂë·ç¸ñ¡¢ÄÚ´æ¹ÜÀí£¨Ö¸Õë¡¢malloc¡¢free¡¢new¡¢delete£©¡¢ÀàÖ®¼äµÄÅÉÉúºÍ·ÃÎʹØϵ£¨Ð麯ÊýÐé¼Ì³Ð ÐéÎö¹¹µÄ×÷Óõȣ©¡¢¹Ø¼ü×Ö£¨static¡¢const¡¢voliate£©µÄ×÷Óá¢C++±ê׼ģ°å¿â¡¢CºÍC++µÄÇø±ðµÈµÈ¡£ÎÒ¸ø´ó¼ÒÍƼöÁ½±¾Ê飺¡¶³ÌÐòÔ±ÃæÊÔ±¦µä¡·ºÍ¡¶C/C++¸ßÖÊÁ¿³ÌÐòÉè¼Æ¡·£¬ÀïÃæ°üº¬Á˹«Ë¾×î°®µÄÌâÄ¿£¬±ÊÊÔµÄʱºò£¬ºÜ¶à¶¼ÊÇÀïÃæµÄÔÌ⣡ÕâÁ½±¾ÊéºÃ²»ºÃ£¬Ö»Óеȴó¼ÒÕÒ¹¤×÷µÄʱºò£¬»á¸ø³öÒ»¸ö¹«ÕýºÏÀíµÄÆÀ¼Û¡£
¢Ú Êý¾Ý½á¹¹£ºÎÒÏëÕâÊÇ´óѧÆÚ¼ä¹Ò¿ÆÂÊ×î¸ßµÄ¿Î³ÌÖ®Ò»£¬Õâ¸üÊǹ«
Ïà¹ØÎĵµ£º
ÔÚÕâÀïÌùÉÏ×î½ü×Ô¼ºÃ¦»îµÄÓÃturbo C±àдµÄ“´ò×ÖÓÎÏ·”µÄÔ´´úÂ룺
#include<graphics.h>
#include<conio.h>
#include<STDLIB.h>
#include<dos.h>
#define BK_COLOR BLACK
#define CHAR_COLOR WHITE
#define C_COLOR BLUE
#define num 10
#define SPEED 3000
#define Esc 27
# ......
C·ç¸ñ×Ö·û´®£º¶Ô×Ö·û´®½øÐвÙ×÷µÄ C º¯Êý¶¨ÒåÔÚÍ·Îļþ<cstring>ÖУ»
1. ×Ö·û´®¶¨Ò壺char* result£»
2. ×Ö·û´®µÄ×îºóÒ»¸ö×Ö·ûÊÇnull×Ö·û£¨'\0'£©£¬¿ÉÒÔͨ¹ýÕâ¸ö×Ö·ûÈ·¶¨×Ö·û´®µÄ½áβ¡£
3. strlen()·µ»ØµÄÊÇ×Ö·û´®µÄ´óС£»Òò´Ë£¬ ......
ʹÓÃC/C++À©Õ¹Python
·Òë:
gashero
Èç¹ûÄã»áÓÃC£¬ÊµÏÖPythonǶÈëÄ£¿éºÜ¼òµ¥¡£ÀûÓÃÀ©Õ¹Ä£¿é¿É×öºÜ¶àPython²»·½±ã×öµÄÊÂÇ飬ËûÃÇ¿ÉÒÔÖ±½Óµ÷ÓÃC¿âºÍϵͳµ÷Óá£
ΪÁËÖ§³ÖÀ©Õ¹£¬Python API¶¨ÒåÁËһϵÁк¯Êý¡¢ºêºÍ±äÁ¿£¬ÌṩÁ˶ÔPythonÔËÐÐʱϵͳµÄ·ÃÎÊÖ§³Ö¡£PythonµÄC APIÓÉCÔ´Âë×é³É£¬²¢°üº¬ “Python.h” Í·Îļ ......
ÔÚ×î½üµÄÒ»¸ö¹ØÓÚLKMLµÄÌÖÂÛÖУ¬Linus¸ø³öÁËΪʲô²»ÓÃC++À´Ð´LinuxÄں˵ÄÀíÓÉ£º
"In fact, in Linux we did try C++ once already, back in 1992. It sucks. Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA.
“ÊÂʵÉÏ£¬ÎÒÃÇÔø¾³¢ÊÔ¹ýÓÃC++À´Ð´£¬ÊÇÔÚ1992ÄêµÄʱºò¡£ºÜÔã¸â¡£ÏàÐÅÎÒ--ÓÃC++À´Ð´ÄÚºË ......