
CandCpp
文章平均质量分 78
howlowl
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Cpp笔记(一)
const safe: #include using 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 · 309 阅读 · 0 评论 -
Cpp复习(二)
__________________________________________________________________________________________________________________________________________ standard c library: file IO, strings, memory allocation, dat原创 2018-02-14 03:48:57 · 321 阅读 · 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 · 255 阅读 · 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 · 307 阅读 · 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 · 1727 阅读 · 0 评论