討論串[問題]使用Union問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者karcher (一個project值多少~~)時間14年前 (2011/04/30 19:24), 編輯資訊
0
0
0
內容預覽:
對喔!!std::string三項都違反了. 如果要裝載有關字串的訊息,. 還是以char* or char temp[some_length]比較好??. 我想C++會支援union,大概也是因為C的緣故。. C語言的物件使用比較單純,. struct裡面都有預設的constructor, cop

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者loveme00835 (朴髮箍)時間14年前 (2011/04/30 19:11), 編輯資訊
0
0
2
內容預覽:
請參考 9.5/1. [...] A union can have member funcitons(including constructors. and destructors), but not virtual functions. A union shall not. have base c
(還有1094個字)

推噓1(1推 0噓 8→)留言9則,0人參與, 最新作者karcher (一個project值多少~~)時間14年前 (2011/04/30 16:50), 編輯資訊
0
0
0
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). VS 2008. 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...). NONE. 問題(Question):. 使用Union, but Compile Failed. *[
(還有369個字)
首頁
上一頁
1
下一頁
尾頁