| 5 | 1/1 | 返回列表 |
| 查看: 3135 | 回復(fù): 23 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
[交流]
【求助】程序運(yùn)行已經(jīng)無錯誤,但是輸入文件有問題,求教。
|
|||
|
輸入文件為: 0.52 5.28794 8.0 13.8400 17.95 20.2000 28.65 24.9000 50.65 31.1000 104.6 36.5000 156.6 36.6000 260.7 31.0000 364.4 20.9000 468.0 7.80000 507.0 1.50000 520.0 0.200000 1.86548 -0.046115 4.0 14.0 30.0 60.0 130.0 230.0 450.0 515.0 結(jié)果出現(xiàn)這個問題:[Session started at 2011-04-06 17:46:04 +0800.] GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000 Loading program into debugger… Program loaded. run [Switching to process 1601] Running… 輸入文件名:splin1.txt 不能打開這個文件splin1.txt Debugger stopped. Program exited with status value:1.(gdb) |
» 搶金幣啦!回帖就可以得到:
+2/130
+1/79
+1/72
+3/48
+1/43
+1/42
+1/40
+1/40
+1/37
+3/28
+1/22
+2/14
+1/10
+1/9
+1/9
+1/5
+1/5
+1/3
+1/2
+1/1
|
我用VC6運(yùn)行了你的程序,采用的也是你給出的例子文件,沒有問題,可以輸出結(jié)果。如下: 0.52 5.28794 -6.27744e+066 2.84681e+066 8 13.84 1.90782e+066 -6.58235e+065 17.95 20.2 -5.40918e+065 1.66027e+065 28.65 24.9 1.93591e+065 -2.87356e+064 50.65 31.1 -7.10913e+064 4.6735e+063 104.6 36.5 1.61149e+064 -1.44065e+063 156.6 36.6 5.22698e+063 1.02188e+063 260.7 31 -6.36429e+064 -2.34503e+063 364.4 20.9 2.48875e+065 8.37238e+063 468 7.8 -9.3144e+065 -3.11584e+064 507 1.5 2.47047e+066 2.05615e+065 520 0.2 -6.27744e+066 -2.89728e+066 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 -6.27744e+066 1.93191e+265 -9.23265e+198 2.94154e+132 6.20039e+068 你的問題是不是由于你的輸入文件還在打開著?在執(zhí)行程序的時候,要關(guān)閉它 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料學(xué)碩333求調(diào)劑 +15 | 北道巷 2026-03-24 | 15/750 |
|
|---|---|---|---|---|
|
[考研] 085404 22408 315分 +3 | zhuangyan123 2026-03-31 | 3/150 |
|
|
[考研] 0856調(diào)劑 +3 | 曲聽筠 2026-03-30 | 3/150 |
|
|
[考研]
|
Gymno 2026-03-30 | 6/300 |
|
|
[考研] 材料科學(xué)與工程調(diào)劑 +10 | 深V宿舍吧 2026-03-30 | 11/550 |
|
|
[考研] 303求調(diào)劑 +7 | DLkz1314. 2026-03-30 | 7/350 |
|
|
[考研] 285求調(diào)劑 +6 | AZMK 2026-03-29 | 9/450 |
|
|
[考研] 一志愿南昌大學(xué)324求調(diào)劑 +9 | hanamiko 2026-03-27 | 9/450 |
|
|
[考研] 085600 286分 材料求調(diào)劑 +11 | 麻辣魷魚 2026-03-27 | 12/600 |
|
|
[考研] 329求調(diào)劑,一志愿西北工業(yè)大學(xué),材料工程(085601) +5 | 小小機(jī)靈蟲 2026-03-29 | 11/550 |
|
|
[考研] 348求調(diào)劑 +6 | 小懶蟲不懶了 2026-03-28 | 6/300 |
|
|
[考研] 考研調(diào)劑 +7 | 小蠟新筆 2026-03-29 | 7/350 |
|
|
[考研] 求調(diào)劑 +6 | 蘆lty 2026-03-25 | 7/350 |
|
|
[考研] 299求調(diào)劑 +7 | 嗯嗯嗯嗯2 2026-03-27 | 7/350 |
|
|
[考研] 308求調(diào)劑 +7 | 墨墨漠 2026-03-25 | 7/350 |
|
|
[考研] 一志愿吉大071010,316分求調(diào)劑 +3 | xgbiknn 2026-03-27 | 3/150 |
|
|
[考研] 中國科學(xué)院深圳先進(jìn)技術(shù)研究院-光纖傳感課題組招生-中國科學(xué)院大學(xué)、深圳理工大學(xué)聯(lián)培 +5 | YangTyu1 2026-03-26 | 5/250 |
|
|
[考研]
|
WWW西西弗斯 2026-03-24 | 8/400 |
|
|
[考研] 材料專碩 335 分求調(diào)劑 +4 | 拒絕冷暴力 2026-03-25 | 4/200 |
|
|
[考研] 網(wǎng)絡(luò)空間安全0839招調(diào)劑 +4 | w320357296 2026-03-25 | 6/300 |
|