请问28335如何可以把一个double型数据转换成char型字符串。我大概试了下下面的语句,然后不行。麻烦帮忙解答。
double y = 5689.56;
char V[10];
snprintf(V,sizeof(V),"%f",y);
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.