一些不太常见但又遇得到的函数

1.ceil函数:

用法:double ceil(double x)

功能:返回大于或者等于指定表达式的最小整数

头文件:cmath/math.h

2.stol函数:

用法:

long stol(
    const string& _Str,
    size_t *_Idx = 0,
    int _Base = 10
);

头文件:string


猜你喜欢

转载自blog.csdn.net/vestlee/article/details/80733346