#include
#include
int main(){
char a[10]="13.0"; double num=atof(a); printf("%f",num); }
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/225425.html原文链接:https://javaforall.net
atof函数的用法include iostream include string h intmain chara 10 13 0 doublenum atof a printf f num string h iostream
#include
#include
int main(){
char a[10]="13.0"; double num=atof(a); printf("%f",num); }
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/225425.html原文链接:https://javaforall.net