why does an infinite loop trash the CPU? - by user342673 I know an infinite loop creates a CPU problem. But, I don't quite understand why. Can anyone explain that to me. Thanks! Read the article
stl string return by const reference vs. const char* - by user342673 i have a STL string member variable in my class, class A { public: const char* getData1() const { return data.c_str()); const string& getData2() const { return _data; } private: string _data; }; getData1() vs. getData2(), which one is better? Read the article