![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基本函数
silver_lining7
这个作者很懒,什么都没留下…
展开
-
isNaN()和isFinite()的应用
1.isNaN(x) isNaN(x) 函数用于检查其参数(x)是否是非数字值。 可以记忆为 is not a number 通过这个可以得到 如果参数x不是数字返回true、数字就返回false。 提示 : isNaN() 函数通常用于检测 parseFloat() 和 parseInt() 的结果,以判断它们表示的是否是合法的数字。 也可以用 isNaN() 函数来检测算数错误,...转载 2019-04-26 23:13:35 · 2634 阅读 · 0 评论 -
std::istream::getline
istream& getline (char* s, streamsize n ); istream& getline (char* s, streamsize n, char delim );Get lineExtracts characters from the stream as unformatted input and stores them into s as a c-...转载 2019-04-26 23:29:08 · 563 阅读 · 0 评论