As evident from question itself, I'm new to C++ and also pointers and dynamic memory allocation.
I want to know how do I stop using static strings like
char str[200];
and should be able to take input until user press enter?
I know this could be done using "new" and I would free memory using "delete" but I can't think of a way to implement this.
Please be polite :) and I know about std::string
, but just want to know how can I implement above mention problem on my own.