[問題] 括號配對問題

看板C_and_CPP (C/C++)作者 (阿母跑很快)時間5年前 (2020/04/14 01:46), 5年前編輯推噓0(005)
留言5則, 2人參與, 5年前最新討論串1/1
開發平台(Platform): (Ex: Win10, Linux, ...) Win10 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) VS2019 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 括號配對 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔) http://codepad.org/9PL0ONyX 補充說明(Supplement): 看不太懂他error的意思 為何一定要+& 懇請賜教 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 110.26.94.9 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1586799989.A.201.html ※ 編輯: samsandy (110.26.94.9 臺灣), 04/14/2020 01:48:48

04/14 01:58, 5年前 , 1F
charstack.top()
04/14 01:58, 1F

04/14 02:03, 5年前 , 2F
這不能怪你 換個編譯器吧 連報錯都不會
04/14 02:03, 2F

04/14 09:17, 5年前 , 3F
www 所以charstack.top 的值才對嗎
04/14 09:17, 3F

04/14 11:29, 5年前 , 4F
charstack.top()是個function 你少了`()'
04/14 11:29, 4F

04/14 12:07, 5年前 , 5F
已解決 感謝
04/14 12:07, 5F
※ 編輯: samsandy (110.26.94.9 臺灣), 04/14/2020 12:07:21
文章代碼(AID): #1UbALr81 (C_and_CPP)
文章代碼(AID): #1UbALr81 (C_and_CPP)