課程
/后端開發(fā)
/C
/C語言入門
設計程序? 不要%x,怎么辦
2016-11-04
源自:C語言入門 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;
}
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
1 回答進制轉(zhuǎn)換
1 回答怎么寫一個二進制轉(zhuǎn)為十進制的程序?
1 回答十進制數(shù)與八進制以及十六進制數(shù)之間的
2 回答二進制
3 回答進制問題
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
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;
}