課程
/后端開(kāi)發(fā)
/C
/C語(yǔ)言入門(mén)
設(shè)計(jì)程序? 不要%x,怎么辦
2016-11-04
源自:C語(yǔ)言入門(mén) 4-4
正在回答
#include <stdlib.h>
#include <stdio.h>
?
int main(void)
{
? ? int n;
? ? char *str = "1234554.67";
? ? n = atoi(str);
? ? printf("int=%d\n",n);
? ? return 0;
}
舉報(bào)
C語(yǔ)言入門(mén)視頻教程,帶你進(jìn)入編程世界的必修課-C語(yǔ)言
1 回答進(jìn)制轉(zhuǎn)換
1 回答怎么寫(xiě)一個(gè)二進(jìn)制轉(zhuǎn)為十進(jìn)制的程序?
2 回答二進(jìn)制
1 回答十進(jìn)制數(shù)與八進(jìn)制以及十六進(jìn)制數(shù)之間的
3 回答進(jìn)制問(wèn)題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-11-04
#include <stdlib.h>
#include <stdio.h>
?
int main(void)
{
? ? int n;
? ? char *str = "1234554.67";
? ? n = atoi(str);
? ? printf("int=%d\n",n);
? ? return 0;
}