61
818
1502
金牌会员
使用道具 举报 送花
2
64
358
中级会员
#include <stdio.h> #include <stdlib.h> int main() { // 定义字符串类型变量 char str[] = "456"; // 声明 int 类型变量 int num; // 将字符串 base 转换为相应的数字 num = atoi(str); printf("转换后的整数为: %d", num); return 0; }复制代码
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-5-4 09:58 , Processed in 0.107889 second(s), 60 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.