how to implement an acceptance of unknown input size (during console entry by user) in a char array, like the way std::string does? (m using gcc/g++ under ubuntu)?