NN, a recent write a small C + + file, think that each time to define a bunch of #include and using a little trouble, but now is going to start to collect a header file is all defined header files,
Today, give me a recent name named "Origin.h."
#ifndef origin_h_included #define origin_h_included<iostream><string><cctype>using std::string; using std::cin; using std::cout; using Std::endl; #endif // origin_h_included // continue to collect, keep updates
Recently saw two new features of c++11
for (Auto c:s) // cout << c << Endl; // output each character in a string sequentially Decltype (S.size ()) 0; // equivalent to int i;
The compiler is not able to compile, obviously together with the download compiler is GNU4.8.1, is to support the c++11 new features. Fortunately, I finally found a way out.
Settings, compiler–> compiler flag–>
Just the sauce.
An interesting header file collection idea + Codeblocks support C++11 method