User profile: ylxin1993

User info
User name:ylxin1993
History
Joined:
Number of posts:98
Latest posts:

c++ ostream problem
I 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 line
I 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

User: ylxin1993

  • Public profile