c++ ostream problemI wrote these code in VS 2012, and the result puzzles me. [code] #include <iostream> int main(voi...
char *str, *str = 'X' error, [code] char* str = new char[10]; str = "Hello"; //*(str + 1) = 'a'; ...
What's wrong with the following class?Is there any other better thing using dynamic memory allocation? ======= plus, what's the usage of ...
What's wrong with the following class?[code] class BadClass { private: int len; char* p; public: CBadClass(const char* str) : p(s...
read from a file, got an extra lineI change the code to this, in g++ an Eclipse all works right, why? [code] int temp = 0; while( inFil...
This user does not accept Private Messages