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

string type ???

0 views
Skip to first unread message

絕「緣」體

unread,
Sep 5, 2000, 9:31:18 PM9/5/00
to
大家好,
我是c++初學者,
利用bcb的編譯器寫程式
如是當我把程式移植到linux上後
gcc進行編譯,
發現gcc不認識string type的變數,
在程式中我沒有用到任何VCL元件
是什麼原因呢?
ansi c++沒有支援string type 的資料型態嗎?
請知道的人告訴小弟啦~
謝謝
--
[m※ Origin: 雲林科技大學藍天使 <bbs.yuntech.edu.tw> [From: 211.21.72.74]

<?PHP?>

unread,
Sep 6, 2000, 12:48:37 AM9/6/00
to
※ 引述《Janso...@bbs.yuntech.edu.tw (絕「緣」體)》之銘言:

> 大家好,
> 我是c++初學者,
> 利用bcb的編譯器寫程式
> 如是當我把程式移植到linux上後
> gcc進行編譯,
> 發現gcc不認識string type的變數,
> 在程式中我沒有用到任何VCL元件
> 是什麼原因呢?
> ansi c++沒有支援string type 的資料型態嗎?
> 請知道的人告訴小弟啦~
> 謝謝

請多利用BCB的說明檔,裡面隨便查個功能,上頭就有可攜性說明,
該如何改都有範例。
--
[1;33m※ Origin: [36m奇摩 大摩域 [37m<telnet://bbs.kimo.com.tw> [m
[1;35m◆ From: [1;32m203.66.104.77 [m

怒向刀叢覓小詩

unread,
Sep 9, 2000, 4:15:49 AM9/9/00
to
※ 引述《Janson (絕「緣」體)》之銘言:

> 大家好,
> 我是c++初學者,
> 利用bcb的編譯器寫程式
> 如是當我把程式移植到linux上後
> gcc進行編譯,
> 發現gcc不認識string type的變數,
> 在程式中我沒有用到任何VCL元件
> 是什麼原因呢?
> ansi c++沒有支援string type 的資料型態嗎?
> 請知道的人告訴小弟啦~
> 謝謝

string 是C++標準規格(可以查一下C++ Primer)

記得先#include <string.h>


--
-------------------------------------------------------------------------------

Analyze a little, design a little, implement a little
, and test a little Grady Booch

--
[m※ Origin: 雲林科技大學藍天使 <bbs.yuntech.edu.tw> [From: 168.95.134.22]

何陋居主

unread,
Sep 9, 2000, 1:33:46 PM9/9/00
to
==> 在 iostre...@bbs.yuntech.edu.tw (怒向刀叢覓小 的文章中提到:

> string 是C++標準規格(可以查一下C++ Primer)
> 記得先#include <string.h>
^^
把 .h 拿掉

--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
≡ 何陋居 ≡ 資源和時間,應該用來使「表現一流」的人進步到「登峰造極」。
一個人的精力一定要用在自己所擅長的方面。 Peter Drucker
《21世紀的管理挑戰》
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

0 new messages