討論串[問題] 請教 C++ 的基本問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者longrider (龍騎士2)時間14年前 (2010/01/06 18:06), 編輯資訊
0
0
0
內容預覽:
各位好. 最近在學習 c++ 的 class. 以下是課本的範例, 課本是說用在 Visual C++ 6.0, 但我用 gcc compile. ---------------------------------------------------------. #include <iostrea
(還有1486個字)

推噓0(0推 0噓 3→)留言3則,0人參與, 最新作者einspon時間14年前 (2010/01/06 22:26), 編輯資訊
0
0
0
內容預覽:
class Time {//第六行,forward declaration of 'class Time'. public:. Time(); //第八行,invalid use of incomplete type 'class Time'. void setTime(int, int, int)
(還有726個字)

推噓2(2推 0噓 2→)留言4則,0人參與, 最新作者longrider (龍騎士2)時間14年前 (2010/01/07 00:34), 編輯資訊
0
0
0
內容預覽:
謝謝 adrianshum, 的確是 public vs Public 問題.... 以下是更正後的版本, 還有兩個問題.. 1. 不知道為什麼, cout 不能用(說未宣告), 我已經 using std 了說.. 所以,下面改用 printf, 引用 stdio.h. 2. 現在Compile
(還有1546個字)
首頁
上一頁
1
下一頁
尾頁