Help - how to supress g++ warning message?



所有跟贴·加跟贴·新语丝科技论坛

送交者: Duke 于 2005-2-11, 18:47:24:

The following code triggers a warning message: "assignment to int from double"


double d = 0.7
int i = d;


Casting to int does not seem to help. How can I get around it?
Thanks.






所有跟贴:


加跟贴

笔名: 密码(可选项): 注册笔名请按这里

标题:

内容(可选项):

URL(可选项):
URL标题(可选项):
图像(可选项):


所有跟贴·加跟贴·新语丝科技论坛