float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score

问题描述:

float score; if ( int(score)-score!=0 ) ...这样输入提示错误我想判断score是不是整数怎么办
1个回答 分类:综合 2014-11-18

问题解答:

我来补答
double score;
if((int)x==x)
printf("%f是整数",x);
 
 
展开全文阅读
剩余:2000
下一页:细胞的物质输入