注意数据类型,这是数据类型的问题!C++是很注重数据类型的!!
void main()
{
double n=123.1,l;
int i;
l=n*10;
i=(int)l%10;
printf("%d \n",i);
}
[此贴子已经被作者于2004-07-04 01:17:44编辑过]
/a3/role/s15.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://image.baidu.com/it?u=http://www./a3/role/s15.jpg');}" onmousewheel="return imgzoom(this);" alt="" />