Using profiler to analyze the performance of code is more efficient, detailed, and intuitive than pure cognitive analysis.
Detailed analysis of type conversion in C++
In C++, when the operand types of an operator are inconsistent, these operands will be converted to the same type. Type conversion is divided into implicit conversion and explicit conversion.
Summary of some object-oriented knowledge in C++
近期准备求职面试。
将C++中面向对象部分的基础知识复习整理一下。
Select member and non-member impl of operator-override
When designing classes to overload operators, it is essential to choose whether to implement the operator as a member or as a regular non-member function.
Reading "Life" and discussing the choices we face
Usage of placeholder modifier * in C/C++
In the process of solving problems, I came across this code snippet for formatting output: printf("%*s%s%*s\n",__________);
The required output format is: ________123456________
//The underscores represent spaces
Ambiguity caused by incorrect use of macro definitions in C++
When writing code, the macro (#define) command is often used. Recently, I encountered two instances where macros were misused, so I’ll analyze them here.
Configure SublimeText as a lightweight IDE for C/C++
Symbols count in article: 6.2k Reading time ≈ 16 mins.
As a C++ programmer, I have long been accustomed to using tools like GCC, but I must say that GCC’s error messages are terrible. Although there are error prompts, it often requires manual debugging to understand them… Now, the good news is here, the accuracy of Clang
‘s messages is incomparably better than that of GCC.
Using Wolfram|Alpha to Evaluate Integrals
Actually, using WolframAlpha to compute integrals is quite overkill (but it’s also a strict requirement for laziness). Recently, I’ve been studying Wolfram Language and slowly discovering new ways to play with it.
Use Koding to manage static blogs online
Previously, I would complete articles on local and then publish them, having already set up a bunch of things like node.js, hexo, git, etc. on my own computer. So, it’s very convenient to use on my computer, but if I switch to another computer, it’s tragic; everything needs to be configured by myself, so I almost end up in a non-usable state whenever I change computers.