| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 509 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺Ϊʲôʲô¶¼Ã»Êä³ö
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
×íÉúÃÎËÀ
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º77
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-21
ÊÕ²Ø
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º6 
Ϊʲôʲô¶¼Ã»Êä³ö

#include <iostream>
using namespace std;

int main()
{
string a,b;

a="iloveyou";
for (unsigned i=0;i<a.size();i++)
{
b[i]=a[i];
}
cout<<b;
}

ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: Êä³ö¡¡
2007-09-07 23:15
ÓêÖзÉÑà
Rank: 3Rank: 3
µÈ¡¡¼¶£º½ûÖ¹·ÃÎÊ
Íþ¡¡Íû£º8
Ìû¡¡×Ó£º2200
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-9
ÊÕ²Ø
µÃ·Ö:0 
b²»ÊÇÊý×飬bûÓгõʼ»¯£¬ÄãÕâÑùʹÓÃbºÜΣÏÕ
ÄãÒªÕâÑù×ö£¬³ý·Ç°Ñb»»³ÉÊý×飬Ҫ²»ÇëÖ±½Ób=a;



by ÓêÖзÉÑà QQ:78803110 QQÌÖÂÛȺ:5305909

[url=http://bbs.bc-cn.net/viewthread.php?tid=163571]Çë´ó¼Ò²»ÒªÓÃTCÀ´Ñ§Ï°CÓïÑÔ£¬µã»÷´Ë´¦²é¿´Ô­Òò[/url]
[url=http://bbs.bc-cn.net/viewthread.php?tid=162918]C++±àдµÄWindows½çÃæÓÎÏ·[/url]
[url=http://yzfy.org/]C/C++Ë㷨ϰÌâ(OnlineJudge)£º[/url] http://yzfy.org/
2007-09-08 01:00
×íÉúÃÎËÀ
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º77
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-21
ÊÕ²Ø
µÃ·Ö:0 
»Ø¸´£º£¨ÓêÖзÉÑࣩb²»ÊÇÊý×飬bûÓгõʼ»¯£¬ÄãÕâÑùʹ...
Ŷ¡«¡«Ð»Ð»ÁË£¬ÎÒÕâÑù×öµÄÄ¿µÄÊÇÒªÏë°ì·¨½«string b½ØµôÇ°Ãæn¸ö×Ö·û£¬½«ºóÃæµÄ×Ö·û¸³¸øa£¬ÓÐʲôºÃ°ì·¨Âð£¿

2007-09-08 01:18
ÓêÖзÉÑà
Rank: 3Rank: 3
µÈ¡¡¼¶£º½ûÖ¹·ÃÎÊ
Íþ¡¡Íû£º8
Ìû¡¡×Ó£º2200
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-9
ÊÕ²Ø
µÃ·Ö:0 
ÄãÕâÑùµÄ»°£¬Ö»ÒªbµÄ´®³¤¶È±Èa¶Ì£¬Ò»¶¨½á¹û´í
ÎÒ¶¼ËµÁËÓÃÊý×飬ÄãÏȸ´ÖƵ½Êý×éÔÙ´¦Àí²»¾ÍºÃºÜ¶àÁË£¿


by ÓêÖзÉÑà QQ:78803110 QQÌÖÂÛȺ:5305909

[url=http://bbs.bc-cn.net/viewthread.php?tid=163571]Çë´ó¼Ò²»ÒªÓÃTCÀ´Ñ§Ï°CÓïÑÔ£¬µã»÷´Ë´¦²é¿´Ô­Òò[/url]
[url=http://bbs.bc-cn.net/viewthread.php?tid=162918]C++±àдµÄWindows½çÃæÓÎÏ·[/url]
[url=http://yzfy.org/]C/C++Ë㷨ϰÌâ(OnlineJudge)£º[/url] http://yzfy.org/
2007-09-08 01:20
×íÉúÃÎËÀ
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º77
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-21
ÊÕ²Ø
µÃ·Ö:0 
»Ø¸´£º£¨ÓêÖзÉÑࣩÄãÕâÑùµÄ»°£¬Ö»ÒªbµÄ´®³¤¶È±Èa¶Ì£¬...
Ŷ£¡ÎÒÒѾ­ÓÃc´®½â¾öÁË£¬Ö»ÊÇÏëÎÊÎÊÄÜÖ±½ÓÓÃstring×öÂ𣿱Ͼ¹²»Ì«ÌᳫÓÃc´®ÂºÜΣÏÕµÄ

2007-09-08 01:23
ÓêÖзÉÑà
Rank: 3Rank: 3
µÈ¡¡¼¶£º½ûÖ¹·ÃÎÊ
Íþ¡¡Íû£º8
Ìû¡¡×Ó£º2200
ר¼Ò·Ö£º0
×¢¡¡²á£º2007-8-9
ÊÕ²Ø
µÃ·Ö:0 
µ¹¡£¡£¡£¡£¡£¡£Öظ´µÄ»°ÎÒ²»ÏëÔÙ˵ÁË£¬Äã¿´ËÄÂ¥ÎÒ˵ÁËʲô
¿´µÚÒ»¾ä



by ÓêÖзÉÑà QQ:78803110 QQÌÖÂÛȺ:5305909

[url=http://bbs.bc-cn.net/viewthread.php?tid=163571]Çë´ó¼Ò²»ÒªÓÃTCÀ´Ñ§Ï°CÓïÑÔ£¬µã»÷´Ë´¦²é¿´Ô­Òò[/url]
[url=http://bbs.bc-cn.net/viewthread.php?tid=162918]C++±àдµÄWindows½çÃæÓÎÏ·[/url]
[url=http://yzfy.org/]C/C++Ë㷨ϰÌâ(OnlineJudge)£º[/url] http://yzfy.org/

[´ËÌù×ÓÒѾ­±»×÷ÕßÓÚ2007-9-8 9:31:34±à¼­¹ý]

2007-09-08 09:28
aipb2007
Rank: 8Rank: 8
À´¡¡×Ô£ºCQU
µÈ¡¡¼¶£º¹ó±ö
Íþ¡¡Íû£º40
Ìû¡¡×Ó£º2879
ר¼Ò·Ö£º7
×¢¡¡²á£º2007-3-18
ÊÕ²Ø
µÃ·Ö:0 

#include <iostream>
#include <string>
using namespace std;

int main()
{
string a,b;
a="iloveyou";
b.resize(a.size());
for (unsigned i=0;i<a.size();i++)
{
b[i]=a[i];
}
cout<<b;
}

Ïë½ØÈ¡aµÄ»°£¬ÓÃÏÂSTLÖеķºÐÍËã·¨£¬Óõü´úÆ÷½â¾ö£¬±È½ÏºÃ¡£


£Æight  £ô£ï £÷in  or  £äie...
2007-09-08 11:32
¿ìËٻظ´£ºÎªÊ²Ã´Ê²Ã´¶¼Ã»Êä³ö
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



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

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