看板 C_and_CPP 關於我們 聯絡資訊
cc1plus: warnings being treated as errors In function 'int main(int, char**)': Line 26: warning: ISO C++ does not support the '%lf' printf format Line 26: warning: ISO C++ does not support the '%lf' printf format 要如何 更正,才能 消除上面的 warning? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 42.72.64.151
suhorng:%f 05/29 13:48
Yshuan:這應該是C的事情... 05/29 17:06
diabloevagto:C++不是都用cout了嗎? 05/29 21:25
lovesnake:include cstdio ? (不懂亂答) 05/30 12:28
lmr3796:%f 05/30 22:16
VictorTom:printf時用%f就可以了, scanf時才用%lf....@_@" 05/30 23:46
xatier:樓上正解 05/31 04:03