摘要:
刚刚在codeblocks中调试一个程序,发现默认并不支持C++11标准,因此有了报错。其实解决方法很简单。在你的当前工程,或者新建了工程后,选择选项卡中的“Setting”,然后选择“Compiler”。如下图勾选上即可…… 阅读全文
摘要:
List Initializer or Element Count?In a few cases, what initialization means depends upon whether we use curly braces or parentheses to pass th... 阅读全文
摘要:
Processing Every Character? Use Range-Based forIf we want to do something to every character in a string, by far the best approach is to use a... 阅读全文