Open steven-mathew opened 5 years ago
Do you mean code snippets such as how to break down a space-separated input with strtok? Or quick tutorials for C++ STLs?
I was thinking of C++ macros. For example, a macro for a for loop in the range [l,r]:
I'm not sure - this is 100% my personal opinion, that those macro defines should be discouraged. These tend to lead to bad coding practices later on. IMO, if we were to mention these techniques, we would need to add a strong caution against using them in regular programming.
I think you should add useful c++ shorthands.