Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

再請問BCB函數

0 views
Skip to first unread message

老石頭

unread,
Mar 30, 1998, 3:00:00 AM3/30/98
to

想再請教一下

我曾試過stoi, 及其它類似的 stof, atoi...等1
但是都不行
後來試StrToInt才成功
stoi是我在help上看到的
StrToInt是在書上找到的,help還看不到
想請教兩者的差別, 謝謝

--
[m [1;37m※ 來源:‧雲淡風清 bbs hole.touc.edu.tw‧[FROM: p26.annex1.wown] [m

--

采鈴

unread,
Mar 30, 1998, 3:00:00 AM3/30/98
to

==> 在 Bein...@hole.touc.edu.tw (老石頭) 的文章中提到:
: 想再請教一下

: 我曾試過stoi, 及其它類似的 stof, atoi...等1
: 但是都不行
: 後來試StrToInt才成功
: stoi是我在help上看到的
: StrToInt是在書上找到的,help還看不到
: 想請教兩者的差別, 謝謝


StrToInt 是針對 AnsiString 使用的
stoi stof atoi 等等是針對傳統的 C/C++ String
像是 char str[255], *st; ...等來用

而 AnsiString 也可以使用 c_str() 來轉換成 char [] 的型態
如 str.c_str()

老石頭

unread,
Mar 30, 1998, 3:00:00 AM3/30/98
to

..【 在 fund. 的大作中提到: 】
: 標 題: Re: 再請問BCB函數
: 發信站: 交大資工鳳凰城資訊站 (Mon Mar 30 14:38:14 1998)
: 轉信站: hole!netnews.ntu!news.mcu!news.cs.nthu!news.csie.nctu!phoenix
: Origin: 210.68.87.23
:
: ==> 在 Bein...@hole.touc.edu.tw (老石頭) 的文章中提到:

萬分感謝

--
[m [1;32m※ 來源:‧雲淡風清 bbs hole.touc.edu.tw‧[FROM: p21.annex1.wown] [m

--

0 new messages