不同类型数的运算

来源:互联网 发布:航天金税盘软件下载 编辑:程序博客网 时间:2024/05/21 09:17

例如
int i=1,n=2;
double m=0;
m=n/i; //不可通过编译


int i=1;
double m=0,n=2; //可通过

0 0
原创粉丝点击