cº¯ÊýµÄ²ÎÊý´«µÝ
ÔÚCÓïÑÔÖУ¬ËùÓд«µÝ¸øº¯ÊýµÄ²ÎÊý¶¼ÊÇ°´Öµ´«µÝµÄ¡£
#include <iostream>
using namespace std;
void Out(int* p)
{
int j = 11;
p = &j;
*p = 12;
cout<<*p<<endl;
}
int main(int argc,char*argv[])
{
int i = 10;
Out(&i);
cout<<"i="<<i<<endl;
cin>>i;
}
Ïà¹ØÎĵµ£º
http://www.kuqin.com/language/20090314/39862.html
Ö¸ÕëÊÇÒ»¸öÌØÊâµÄ±äÁ¿£¬ËüÀïÃæ´æ´¢µÄÊýÖµ±»½âÊͳÉΪÄÚ´æÀïµÄÒ»¸öµØÖ·¡£ Òª¸ãÇåÒ»¸öÖ¸ÕëÐèÒª¸ãÇåÖ¸ÕëµÄËÄ·½ÃæµÄÄÚÈÝ£ºÖ¸ÕëµÄÀàÐÍ£¬Ö¸ÕëËùÖ¸ÏòµÄ ÀàÐÍ£¬Ö¸ÕëµÄÖµ»òÕß½ÐÖ¸ÕëËùÖ¸ÏòµÄÄÚ´æÇø£¬»¹ÓÐÖ¸Õë±¾ÉíËùÕ¼¾ÝµÄÄÚ´æÇø¡£ÈÃÎÒÃÇ·Ö±ð˵Ã÷¡£
¡¡¡¡ ÏÈÉùÃ÷¼¸¸öÖ¸Õë·Å×Å×öÀý× ......
getcharº¯ÊýÊǶ¨ÒåÔÚ stdio.h ÎļþÖеÄÒ»¸öÊäÈ뺯Êý¡£Ëü´Ó±ê×¼ÊäÈëÉ豸£¨Ò»°ãÊǼüÅÌ£©ÖжÁÈ¡Ò»¸ö×Ö·û¡£
ÔÚʵ¼Ê¹¤×÷ÖУ¬ËüÊÇÕâÑùÍê³ÉµÄ£º
¼üÅÌÊäÈëµ½¼ÆËã»úÖеÄ×Ö·û²¢²»ÊÇÁ¢¿ÌË͵½ÄÚ´æÖÐÖ¸¶¨Î»Ö㬶øÊÇ»áÊ×ÏÈ»º´æµ½Ò»¸ö»º³åÇøÖС£Õâ¸öÊǼÆËã»úΪÁËÃÖ²¹²»Í¬Ó²¼þÖ®¼äËٶȲî¾à£¬¶ø¹ßÓõļ¿Á©¡£
µ±ÔÚ³ÌÐòÖеÚÒ»´Îµ÷Óà getchar ......
¡¡¡¡1£¬mallocÓëfreeÊÇC++/CÓïÑԵıê×¼¿âº¯Êý£¬new/deleteÊÇC++µÄÔËËã·û¡£ËüÃǶ¼¿ÉÓÃÓÚÉêÇ붯̬ÄÚ´æºÍÊÍ·ÅÄÚ´æ¡£
¡¡¡¡2£¬¶ÔÓÚ·ÇÄÚ²¿Êý¾ÝÀàÐ͵ĶÔÏó¶øÑÔ£¬¹âÓÃmaloc/freeÎÞ·¨Âú×㶯̬¶ÔÏóµÄÒªÇ󡣶ÔÏóÔÚ´´½¨µÄͬʱҪ×Ô¶¯Ö´Ðй¹Ô캯Êý£¬¶ÔÏóÔÚÏûÍö֮ǰҪ×Ô¶¯Ö´ÐÐÎö¹¹º¯Êý¡£ÓÉÓÚmalloc/freeÊǿ⺯Êý¶ø²»ÊÇÔËËã·û£¬²»ÔÚ±àÒëÆ ......
´ÓСÀÏʦ¾Í½Ìµ¼ÎÒÃÇ£¬²»»á×öµÄÌâ¾ÍÑ¡C£¬ÒòΪѡÔñÌâÑ¡CµÄ¸ÅÂÊÊÇ×î¸ßµÄ¡£ÊÂʵÉÏÕæÊÇÈç´ËÂ𣿽ñÌìÎÒÍ»·¢ÆæÏ룬ÀûÓÃGoogle×öÁËÒ»¸öСʵÑ顣ͳ¼ÆÏÔʾ£¬´ð°¸Ñ¡CµÄÌâ¹ûÈ»ÊÇ×î¶àµÄ£¡
Results 1 - 10 of about 364,000 for "ÕâµÀÌâÑ¡A".
Results 1 - 10 of about 352,000 for "ÕâµÀÌâÑ¡B".
Results 1 - 10 of about 521,000 for ......
#include <stdio.h>
#define MAXHIST 15
#define MAXWORD 11
#define IN 1
#define OUT 0
//´òÓ¡ÊäÈëÖе¥´Ê³¤¶ÈµÄˮƽ·½ÏòÖ±·½Í¼£¬
void main()
{
int c, i, nc, state;
int len; //length of each bar
int maxvalue; &n ......