有,char *gcvt(double v,int n,char *b)就是其一。其中b是存放转换后的字符串的空间首地址(指针),n是转换后的字符串的长度,v是要转换的浮点数。应用举例如下: //#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"#include "stdlib.h"int main(void){ cha
← 上一条:海盗”黑胡子“在历史上确有其人吗? 下一条:坐等大神,C语言如何将字符串转化为浮点数? →