![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++/C
文章平均质量分 87
Takatsukii
So do what you want and say what you feel, because those who mind don't matter and those who matter don't mind.
展开
-
eof()-检查文件读取是否达到文件末尾
std::ios::eofbool eof() const;Check whether eofbit is setReturns true if the eofbit error state flag is set for the stream.This flag is set by all standard input operations when the翻译 2014-09-26 20:11:13 · 638 阅读 · 0 评论 -
cin.getline用法说明 - from C++ reference
std::istream::getlineistream& getline (char* s, streamsize n );istream& getline (char* s, streamsize n, char delim );Get lineExtracts characters from the stream as unformatted input and翻译 2014-09-26 19:19:17 · 598 阅读 · 0 评论 -
windows 环境下 cpp 文件命令行编译的配置 & 带参数的main函数的编译和运行
转载自:点击打开链接转载 2014-10-14 12:34:53 · 2529 阅读 · 0 评论 -
c++多态性原理及应用 & c++以及cuda 计时技术小结
关于c++多态性的应用,之前曾经看到过侯俊杰的《深入浅出MFC》,结合上面提到过一些关于多态性的用法与今天看到的一些代码,做一个简单的总结:1. 既然子类和父类(抽象类)实现了同样的方法,而且各个子类之间实现的方法都有所不同,那么当程序执行的时候,程序是如何知道用户所调用的是哪一个方法呢? 众所周知,一个类在堆栈中是怎样存在的呢?更准确地说类的对象在堆栈中是如何存在的呢?(类原创 2015-11-09 22:29:39 · 977 阅读 · 0 评论 -
Comparison of several number rounding methods
Comparison of several number rounding methods原创 2016-08-10 20:56:16 · 360 阅读 · 0 评论