| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 1030 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôҪǿÖÆת»»Îªint²ÅÄÜÊä³öa¡¾1¡¿ÄØ£¿
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
º£Ã౦±¦lyy
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º4
ר¼Ò·Ö£º0
×¢¡¡²á£º2020-10-25
½áÌûÂÊ£º33.33%
ÊÕ²Ø
ÒѽáÌù¡Ì  ÎÊÌâµãÊý£º4 »Ø¸´´ÎÊý£º1 
ΪʲôҪǿÖÆת»»Îªint²ÅÄÜÊä³öa¡¾1¡¿ÄØ£¿
#include<iostream>
#include<string>
using namespace std;
void main()
{
    char a[10]={1,2,3};
    cout<<a[1]<<endl;        //ÎÞ·¨Êä³ö2
    cout<<(int)a[1]<<endl;   //¿ÉÒÔÊä³ö2
}
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: include¡¡Ç¿ÖÆת»»¡¡int¡¡cout¡¡Êä³ö¡¡
2020-11-14 14:50
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º528
Ìû¡¡×Ó£º9031
ר¼Ò·Ö£º54061
×¢¡¡²á£º2011-1-18
ÊÕ²Ø
µÃ·Ö:4 
ÒòΪ 2 ²»ÊǸö¿É´òÓ¡µÄ asc ×Ö·û£¬'2'²ÅÊÇ¿É´òÓ¡µÄ¡£
cout ¶Ô char ÀàÐ͵±³É×Ö·ûÊä³ö£¬¶Ô int ÀàÐ͵±³ÉÕûÊýÊä³ö¡£
2020-11-14 19:00
¿ìËٻظ´£ºÎªÊ²Ã´ÒªÇ¿ÖÆת»»Îªint²ÅÄÜÊä³öa¡¾1¡¿ÄØ£¿
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.019370 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved