看板 Programming 關於我們 聯絡資訊
最近我在VS利用scanf用來輸入一個數字 但經過compiler後出現錯誤 => 建議我使用scanf_s 改過後,出現warning,以下 'scanf_s':format string '%lf' requires an argument of type 'double *',but variadic argument 1 has type 'double' 狀況:輸入數字後,出現錯誤視窗 =>Debug Assertion Failed! 中止 找過資料,也解決不了 請問哪方面錯了? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.124.42.69 ※ 文章網址: https://www.ptt.cc/bbs/Programming/M.1464873500.A.25C.html
bibo9901: 不就很白話的告訴你了: 他要的是double* 140.112.16.139 06/02 21:24
IKAFIRE: 他warning都寫了,要pointer不給pointer 140.112.187.97 06/02 21:24
bibo9901: 但你給的是double. 找資料能力有待加強 140.112.16.139 06/02 21:24