作者在 2008-09-18 22:39:47 发布以下内容
大仲马(418724762) 22:18:07
#include <stdio.h>
main()
{
double float x,y;
x=2;
y=x+3/2;
printf("y=%lf",y);
}
#include <stdio.h>
main()
{
double float x,y;
x=2;
y=x+3/2;
printf("y=%lf",y);
}
大仲马(418724762) 22:18:21
有一个错误,不知是哪个?
大仲马(418724762) 22:19:25
不对
小力(877929878) 22:20:38
double float
大仲马(418724762) 22:22:48
恩,出来了
大仲马(418724762) 22:23:02
怪了,float还不能加
大仲马(418724762) 22:28:17
呵呵,看来要注意的细节还是蛮多的
大仲马(418724762) 22:29:00
比如整型可以long int.实型double float就不行
大仲马(418724762) 22:31:30
按理long int和long 是合法的,那么double float和double也应该合法才对啊
大仲马(418724762) 22:32:32
哎,给C学习者制造一个考点和误区