[問題] 讀檔字串多寡不一
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
以下是我檔案中顯示的片段:
而真正有用的是"Objective = "後面的數字,
然而,"Objective = "前面的文字會變動,且字串長度也會改變,
例如: 會出現"MIP - Integer optimal solution: Objective ="...
請問有辦法只抓"Objective ="之後的數字嗎???
餵入的資料(Input):
Dual simplex - Optimal: Objective = 2.2500000000e+014
預期的正確結果(Expected Output):
2.2500000000e+014
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.96.176
推
04/20 19:45, , 1F
04/20 19:45, 1F
→
04/20 19:51, , 2F
04/20 19:51, 2F
→
04/20 19:51, , 3F
04/20 19:51, 3F
→
04/20 21:46, , 4F
04/20 21:46, 4F
推
04/21 01:26, , 5F
04/21 01:26, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章