我這樣寫(xiě)了。為什么還是錯(cuò)的?
file.c: In function 'main':
file.c:9:2: error: expected ',' or ';' before 'float'
float f = c//將c賦值給f
^~~~~
file.c:15:16: error: 'f' undeclared (first use in this function)
printf("%f\n",f);
^
file.c:15:16: note: each undeclared identifier is reported only once
2017-04-03
c='a'的意思是把a(bǔ)這個(gè)輸出值賦值給了c,也就是說(shuō)c此時(shí)的代表的就是a這個(gè)值,下面的很簡(jiǎn)答。
int n=c
float f=c
double d=c
這樣就行了。
2017-04-07
不用謝