[問題] C++/CLI 入門問題

看板C_and_CPP (C/C++)作者 (YelloShy)時間11年前 (2014/10/15 23:55), 編輯推噓0(004)
留言4則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VS 2012(CLR) 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 1. 是否能於C++/CLI 中使用C++或C的語法。 2. 如何輸入INT的數值,網路上都是用Console::Read(),但是這讀不到雙位以上的數字 ,且輸入的是ASCII碼。 餵入的資料(Input): 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): 程式碼(Code):(請善用置底文網頁, 記得排版) int^ test ; Console::Read; Console::WriteLine("TEST:"+*test); 補充說明(Supplement): PPT新手,請見諒... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.38.30.172 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1413388509.A.75F.html

10/16 00:00, , 1F
程式碼錯誤更正 int^ test = Console::Read();
10/16 00:00, 1F

10/16 00:22, , 2F
也解決 請求刪文
10/16 00:22, 2F

10/19 01:22, , 3F
解決方法是?知識需要共享,刪文不如別發
10/19 01:22, 3F

11/03 01:16, , 4F
印象中是用Console::ReadLine()
11/03 01:16, 4F
文章代碼(AID): #1KFfZTTV (C_and_CPP)
文章代碼(AID): #1KFfZTTV (C_and_CPP)