C++常用函数

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u79501/article/details/72848400

atof

功能:把字符串转换为浮点数

用法:

double atof(const char* nptr);

相关函数:atoi (字符串转正数)



声明二维vector:

int M, N;
vector< vector<double>> x_data(M, vector<double>(N));



取走从键盘输入的一个字符:

getchar();



猜你喜欢

转载自blog.csdn.net/u79501/article/details/72848400