Originally Posted by Elkvis
This is prone to buffer overflows. Use std::getline or simply std::string.
Same applies for arrays on the stack.
In any case, if the teacher forces you to use Turbo C(++) and void main and other non-standard crap, then I think it is a good idea to drop the course, unless it's a requirement.
Learning outdated tools will not help you in real life in any way or form.
definitely, but the point was to demonstrate the C++ way of doing what CommonTater was demonstrating.
Originally Posted by Elysia