c[0]='0'+3ÖеÄ'0'Ö÷ÒªÆðʲô×÷ÓÃ?
ÇëÎÊÈçϹý³ÌÊä³öΪ3,µ«ÊÇÈç¹û½«c[0]='0'+3;;¸ÄΪc[0]=3;¾Í²»ÊÇ3ÁËÕâÊÇΪʲô?Õâ¸ö'0'ÔÚÕâÖ÷ÒªÆðʲô×öÓÃ#include <stdio.h>
void main()
{
char c[3];
c[0]='0'+3;
c[1]='\0';
printf("%s",c);
}
----------------½â¾ö·½°¸--------------------------------------------------------
Êý×Ö±ä×Ö·û
----------------½â¾ö·½°¸--------------------------------------------------------
ÄÇôΪʲôÊý×Ö±ä×Ö·ûʱ±ØÐëÔÚÇ°Ãæ¼ÓÉÏ'0',Õâ¸öÖ÷ÒªÆðʲô×÷ÓÃѽ,лл ÁË
----------------½â¾ö·½°¸--------------------------------------------------------
×Ö·û'1'ºÍ'0'Ïà²î1,'2'ºÍ'0'Ïà²î2............¾ÍÕâ¸öÑù×ÓÁË
----------------½â¾ö·½°¸--------------------------------------------------------
×Ö·ûºÍÊý×ÖÊÇ¿ÉÒÔÏ໥ת»»µÄ£¬µ«ÊÇת»»¾ÍÐèÒªÄǸö¡®¡¯£¡
----------------½â¾ö·½°¸--------------------------------------------------------
ÕÒ¸öascÂë±íÀ´¿´¿´¾ÍÖªµÀÁË
¿ÉÒÔд³É
c[0]='\0'+51;
¡®\0¡¯ÊÇascµÄµÚ0룬3Õâ¸ö×Ö·ûÊǵÚ51룬Õâô¼Ó¾ÍÊÇc[0]=51 Ò²¾ÍÊÇ×Ö·ûµÄ3
----------------½â¾ö·½°¸--------------------------------------------------------
[bo]ÒÔÏÂÊÇÒýÓà [un]mqh21364[/un] ÔÚ 2008-4-23 16:41 µÄ·¢ÑÔ£º[/bo]
×Ö·û'1'ºÍ'0'Ïà²î1,'2'ºÍ'0'Ïà²î2............¾ÍÕâ¸öÑù×ÓÁË
×Ö·û'1'ºÍ'0'Ïà²î1,'2'ºÍ'0'Ïà²î2............¾ÍÕâ¸öÑù×ÓÁË
ºÃ¿É°®°¡~~~~~~~¤«¤ï¤¤¤¤
[color=white]
----------------½â¾ö·½°¸--------------------------------------------------------
лл´ó¼ÒÁË
----------------½â¾ö·½°¸--------------------------------------------------------
[bo]ÒÔÏÂÊÇÒýÓà [un]ÓêÖÐï÷Ñà[/un] ÔÚ 2008-4-23 16:56 µÄ·¢ÑÔ£º[/bo]
ºÃ¿É°®°¡~~~~~~~¤«¤ï¤¤¤¤
http://blog.programfan.com/upfile/200804/2008040611237.gif
ºÃ¿É°®°¡~~~~~~~¤«¤ï¤¤¤¤
http://blog.programfan.com/upfile/200804/2008040611237.gif
ÕæµÄô£¿£¿£¿£¿£¿£¿£¿
----------------½â¾ö·½°¸--------------------------------------------------------
ΪʲôÊÇÁ½¸ö¡°¤¤¡±£¿ÒÉ»óÖС¡ÎÒ··´Êµä¡¡¶¼Íü¹âÁË¡¡
----------------½â¾ö·½°¸--------------------------------------------------------