tomo-cat / cppnote Goto Github PK
View Code? Open in Web Editor NEWC++语法笔记
C++语法笔记
在源文件line76,介绍typeid
时
bp和dp指向通医药类型对象
“通医药” -> “同一”
在1.1节的末尾提到c++11的constexpr关键字,并且最后说:
我们也可以让constexpr指针指向常量:
constexpr int i = 10;
constexpr const int *pi = &i; // 顶层const + 底层const
报错信息如下:
error: ‘& i’ is not a constant expression
constexpr const int* p = &i;
这段代码在gnu gcc编译器上没有编译通过。
我觉得i虽然是constexper,但是i的地址毕竟是运行期才确定的,因此不能认为pi是一个constexpr。
@在介绍const_cast
处:
一旦我们去掉了某个对象的const性质,编译器就不会再组织我们对该对象进行写操作了。
“组织”应为“阻止”。
readme中的链接是go的,请修改成cpp
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.