Results 1 to 2 of 2

Thread: Leaving C behind

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Angry 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?

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width