-
Leaving C behind
I'm pretty new to C++, but is it possible to not have to use any part of C but pure C++?
For example, using the string library (<string> ) without having to use <string.h>.
Example, how would I go about getting the Windows username ( GetUsernameA() API ) without using C strings?
-
Re: Leaving C behind
Why does it matter? You can probably get a long way without using any of the old C functions but why go out of your way to avoid them?
Many applications are written in C for efficiency and because it tends to generate less object code than C++ (the Linux kernel and surrounding systems are a prime example of this).
It's probably a bad idea (in the long run) to focus solely on C++ methods because you'll limit yourself to the scope in which you are able to work.