![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CandCpp
文章平均质量分 78
howlowl
这个作者很懒,什么都没留下…
展开
-
Cpp笔记(一)
const safe:#includeusing namespace std;class A{ int ia;public: void setA(const int a){ ia = a; } int getA() const { /* const-safe functions: * won't change anything; * const object原创 2018-02-08 05:06:53 · 248 阅读 · 0 评论 -
Cpp复习(二)
__________________________________________________________________________________________________________________________________________standard c library: file IO, strings, memory allocation, dat原创 2018-02-14 03:48:57 · 277 阅读 · 0 评论 -
Cpp复习(三)template library and c++11
using range-based for loop:#include#include "animals.hpp"using namespace std;int main(int argc, char ** argv){ Dog a ("arnie"); Dog b ("barky"); Dog c ("not a cat"); for(const Dog & d: {a,原创 2018-02-15 16:14:23 · 219 阅读 · 0 评论 -
C and C++ Syntax
(1)What is the difference between %f and %lf in C programming?For output using the printf family of functions, the %f and %lf specifiers mean the same thing; the l is ignored. Both require a corresp...转载 2018-08-24 00:15:58 · 245 阅读 · 0 评论 -
Floating-Point overflow and underflow
(一)What will happen if so ?Floating-Point Overflow and Underflow Suppose the biggest possible float value on your system is about 3.4E38 and you do this: float toobig = 3.4E38 * 100.0f; printf("%...转载 2018-08-24 10:29:02 · 1552 阅读 · 0 评论