Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

cÏÝÚåÓëȱÏÝ ÐĵÃÌå»á 1

      ½ñÌì±È½ÏÀÁ¶è£¬Ã»×öÌ⣬ֻÊÇ¿´ÁËÒ»µãÄDZ¾cÏÝÚåÓëȱÏÝ£¬ËµÊµ»°¶ÁÁ˲»¶àµ«Ã÷ÏÔÄܸоõ³öÕâÊÇÒ»±¾ºÃÊ飬¸Ð¾õ¶ÔÎÒÀ´Ëµ¸ÕºÃ£¬²»ÊÇ»ù´¡Ê飬µ«Ò²»ù±¾ÄÜ¿´¶®£¬¶øÇÒÄÜѧµ½ºÃ¶à¶«Î÷£¬µ«½ñÌìÖ»¿´ÁËÈýÕ£¬Ö÷ÒªÊÇϾüÆìÁË£¬囧£¬ÎÒÒ²Ö»ÄÜ°ÑÎÒѧµ½µÄ×ܽáÏÂÀ´£¬Ñ§ÁË×ܱÈÒ»µã¶¼Ã»Ñ§ÒªºÃ£¬ÎÒÒ²Ö»ÄÜÕâÑù°²Î¿×Ô¼ºÁË¡£
     Ê×ÏȾÍÊÇÒ»¸öºÜ»ù±¾µÄÎÊÌ⣬µ«ÎÒÒÔÇ°²»ÖªµÀµÄ£¬¾ÍÊÇcÓïÑÔ±àÒëÆ÷ÈçºÎ½øÐдʷ¨·ÖÎö£¬¾Í±ÈÈç˵ÏÂÃæÕâ¸ö±í´ïʽa---b,µ±±àÒëÆ÷Äõ½Õâ¸ö±í´ïʽʱ£¬Ëü»áÔõô·ÖÎöÄØ?ÏÖÔÚÎÒÖªµÀÁË£¬cÓïÑԵıàÒëÆ÷×ñÑ­“Ì°ÐÄ·¨”£¬ËùνµÄÌ°ÐÄ·¨¾ÍÊDZàÒëÆ÷´Ó×óµ½ÓÒÒ»¸öÒ»¸ö×Ö·û¶ÁÈ룬Èç¹û¸Ã×Ö·ûÄÜ×é³ÉÒ»¸ö·ûºÅ£¬ÄǾÍÔÙ¶ÁÈëÏÂÒ»¸ö×Ö·û£¬ÅжÏÒѾ­¶ÁÈëµÄ×Ö·û´®ÊÇ·ñ¿ÉÄÜÊÇÒ»¸ö·ûºÅµÄ×é³É²¿·Ö£¬Èç¹ûÊÇÄǾÍÔÙ¶ÁÈëÒ»¸ö×Ö·û£¬½Ó×ÅÅжÏÕâ3¸ö×Ö·û×é³ÉµÄ×Ö·û´®ÊÇ·ñ¿ÉÄÜÊÇÒ»¸ö·ûºÅµÄ×é³É²¿·Ö£¬Èç¹ûÊÇ£¬ÄǾͽÓ×ŶÁ£¬Ö±µ½Ëù¶ÁÈëµÄ×Ö·û´®²»¿ÉÄÜ×é³ÉÒ»¸ö·ûºÅ£¬ËùÒÔ¶ÔÓÚÉÏÊöµÄ±í´ïʽ£¬ÕýÈ·µÄÀí½âÊÇ£¨a--£©-b£¬»¹ÓÐÏà¹ØµÄÒ»µãÊÇ·ûºÅ¼ä¿ÉÒÔÓпոñ£¬µ«Ò»¸ö·ûºÅÄÚÓпոñºÍû¿Õ¸ñÊÇÓÐÇø±ðµÄ£¬»¹ÊÇÄÃÉÏÊö±í´ïʽ˵£¬£¨1£©a-- -b£¨2£©a- --b£¬ÕâÁ½¸öÊDz»Í¬µÄ£¬µÚÒ»¸öºÍԭʼµÄÊÇͬһ¸öÒâ˼¡£»¹ÓÐÒ»¸öµäÐ͵ÄÀý×Ó¾ÍÊÇy=x/*p,±¾ÒâpÊÇÒ»¸öÖ¸ÏòÕûÊýµÄÖ¸Õ룬Ïë°Ñx³ýÒÔpËùÖ¸ÏòµÄÊý¸³¸øy£¬µ«ÊÂʵÉÏ/*»á±»±àÒëÆ÷½âÊÍΪעÊ͵ÄÒ»²¿·Ö¡£
     µÚ¶þ¾ÍÊÇÊéÀï¶ÔCÓïÑÔµ¥ÒýºÅºÍË«ÒýºÅÇø±ðµÄ²ûÊö£¬CÓïÑÔÓõ¥ÒýºÅÒýÆðµÄÒ»¸ö×Ö·ûʵ¼ÊÉÏ´ú±íÒ»¸öÕûÊý£¬ÕûÊýÖµ¶ÔÓ¦ÓÚ¸Ã×Ö·ûÔÚ±àÒëÆ÷²ÉÓõÄ×Ö·û¼¯ÖеÄÐòÁÐÖµ¡£Ò»°ã±àÒëÆ÷²ÉÓõÄÊÇASCII×Ö·û¼¯¡£ÓÃË«ÒýºÅÒýÆðµÄ×Ö·û´®´ú±íµÄÊÇÖ¸ÏòÒ»¸öÎÞÃûÊý×éÆðʼ×Ö·ûµÄÖ¸Õ룬¸ÃÊý×鱻˫ÒýºÅÖ®¼äµÄ×Ö·ûºÍÒ»¸ö¶îÍâµÄ¶þ½øÖÆֵΪÁãµÄ×Ö·û'\0'³õʼ»¯¡£
     µÚÈýµã¾ÍÊÇÀ´¿´Ò»ÏÂÕâ¸ö±í´ïʽ(*(void(*)( ) )0)( ),µÚÒ»ÑÛ¿´È·Êµ±È½ÏÔΣ¬µ«¾­¹ýËûµÄ½âÊͺóÎÒ¶®ÁË£¬Ê×ÏÈÊÇ£¨void(*)( )£©,Õâ×ÜÌåÊǸöÇ¿ÖÆÀàÐÍת»¯£¬À¨ºÅÀïÃæµÄÊǸöº¯ÊýÖ¸Õ룬Ҳ¾ÍÊÇ˵°Ñ0Õâ¸öµØַת»¯ÎªÒ»¸öº¯ÊýÖ¸Õ룬ȻºóÖ´ÐÐÕâ¸öµØÖ·Éϵĺ¯Êý¡£ÕâÀﻹÓиöº¯ÊýÉùÃ÷£¬¿´µÄ²»Ì«¶®£¬Áô×÷ÒÔºóµÄÒ»¸öÎÊÌâ°Évoid£¨*signal( int ,void(*)( int ) )£©( int );
     ×îºóÒ»¸ö¾ÍÊÇswitchÎÞbreakµÄÃîÓã¬ÓÐÏÂÃæÒ»¸öÀý×Ó£¬¾ÍÊDZàÒëÆ÷ÔÚ²éÕÒ·ûºÅʱҪÌø¹ý³ÌÐòÖеĿոñ£¬ÖƱíºÍ»»Ðзû£¬±àÒëÆ÷¶ÔÈýÕߵĴ¦ÀíÊÇÏàͬµÄ£¬³ýÁËÓöµ½»»Ðзûʱ³ÌÐ


Ïà¹ØÎĵµ£º

[C]CÓïÑÔ»ù´¡¹®¹ÌרÌâ const

const ÊÇÔÚ³ÌÐòÖзdz£ÖØÒª¡£ÔÚÕâÀïÎÒ×öһϼòµ¥µÄ½éÉÜ¡£
1.const »ù´¡
  constÓÐÁ½ÖÖÐÎʽ:
  a) const Type var;
     È磺int a =10;const int * var=&a; ÄÇôvar¾ÍÊdz£Á¿Ö¸Õ룬±íÃ÷ÊÇÖ¸Ïò³£Á¿µÄÖ¸Õ룬Ҳ¾ÍÊÇ˵aµÄÖµ²»Äܸı䡣
        ......

Ò»¸öͨѶ¼´úÂë¡£Ìṩ²Î¿¼£¬Ð´µÄ¼È²»Ïñc£¬ÓÖ²»Ïñc++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <windows.h>
#include <iostream>
using namespace std;
class student{
private:
 char name[20],addr[40];
 char id_number[40],phone[20];
public:
 void searchstud_info();
 void ......

c/c++ÖÐÄÚ´æÇøÓò»®·Ö´ó×ܽá

Ò». ÔÚcÖзÖΪÕ⼸¸ö´æ´¢Çø
1.Õ» - ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å
2.¶Ñ - Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ
3.È«¾ÖÇø£¨¾²Ì¬Çø£©£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬Î´³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£- ³ÌÐò½áÊøÊÍ·Å
4.ÁíÍ ......

C++ÖÐextern ¡°C¡±º¬ÒåÉî²ã̽Ë÷ [ת]



1.
ÒýÑÔ
¡¡¡¡C++
ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”
£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++
ÖÐÀàËÆC
ÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëC
ÓïÑÔÍêÈ«Ïàͬ¡£×÷ ΪһÖÖÓûÓëC
¼æÈݵÄÓïÑÔ£¬C++
±£ÁôÁËÒ»²¿·Ö¹ý³ÌʽÓïÑÔµÄÌص㣨±»ÊÀÈ˳ÆΪ“
²»³¹µ×µØÃæÏò¶ÔÏó”
£©£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓÚ ......

C/C++ÓïÑÔ±à³ÌÐÞÑø£¨×ª£©

±à³ÌÐÞÑø £¨×÷Õߣº³Â𩣩
————
ת×Ô:http://blog.chinaunix.net/u1/49717/showart.php?id=2138481 
ʲôÊǺõijÌÐòÔ±£¿ÊDz»ÊǶ®µÃºÜ¶à¼¼Êõϸ½Ú£¿»¹ÊǶ®µ×²ã±à³Ì£¿»¹ÊDZà³ÌËٶȱȽϿ죿
ÎÒ¾õµÃ¶¼²»ÊÇ¡£¶ÔÓÚһЩ¼¼Êõϸ½ÚÀ´ËµºÍµ×²ãµÄ¼¼Êõ£¬Ö»Òª¿´°ïÖú£¬²é×ÊÁϾÍÄÜÕÒµ½£¬¶Ô
ÓÚËÙ¶È¿ì£¬Ö ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ