stdlib.h

把参数 str 所指向的字符串转换为一个整数(类型为 int 型)

int atoi(const char *str)

把参数 str 所指向的字符串转换为一个浮点数(类型为 double 型)

double atof(const char *str)
 
posted @ 2024-05-12 22:52  jason8826  阅读(56)  评论(0)    收藏  举报