View Poll Results: Which do you prefer to program in?

Voters
39. You may not vote on this poll
  • C

    11 28.21%
  • C++

    17 43.59%
  • Both

    11 28.21%

Thread: C or C++

  1. #16
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    they don't stand a chance against our cumulative millitary might.

  2. #17
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > they don't stand a chance against our cumulative millitary might.

    C/C++ OVERPOWERS!!!

    --Garfield

  3. #18
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    We have the Neutron Bomb, we have the A-Bomb, we have Anthrax, we have Seryn Nerve Gas, we have the Suplex, we have the Powerbomb, we have The Rock on our side. We shall be victorious.

  4. #19
    Former Member
    Join Date
    Oct 2001
    Posts
    955
    I use both, even sometimes in the same program!

    like this

    for(int a=0;i<100;i++) //You can only do this on C++
    {
    printf("%d",a); //This is C (well, I think)
    }

    or maybe

    int b;
    for(b=0;b<100;b=b+1) //I'm not really sure if you can use ++ in C
    {
    cout << b; //This is C++
    }

    but I definetly use classes, specially for windows programs

    Oskilian

  5. #20
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Without C there would be no such thing as C++. Also C is undeniable because it is the native language of the operating system. It is the most powerful language. The great thing about C++ though is that it is a much better language for developing high level applications because of the OOP design, basically comes down to better program design, except not for low level programming!

  6. #21
    Registered User EvenFlow's Avatar
    Join Date
    Oct 2001
    Posts
    422
    Ditto that Troll_King. Couldn't have said it better myself.
    Ramble on...

  7. #22
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    "Also C is undeniable because it is the native language of the operating system"

    I didn't know this. So then there were no operating systems before C came around? Nor are there any operating systems not written in C?

    I was also under the impression that you could do all the low level stuff you wanted with C++.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  8. #23
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    i just want to say to gamegod:

    Code:
    struct A {
       int a;
       int (*member_b) ();            //pointer to function
    };
    functions as class members is hardly the main advantage of C++ over C. As you can see, the same effect is accoplished using a C compiler with the above code...

    SilentStrike's right, you can do anything in C++ that can be done in C. Performance hits are insignificant, and depend largely on the programmer. i've sure seen some pathetically slow crap written in C. Plus the hits are basically insignificant when you weigh the advantages of OOP. This arguement is tired. Why do people resist inovation? C++ has been around for almost twenty years, and yet people still don't understand it's benefits.
    THIS IS NOT JUST A CHRONICLING OF THINGS WE HAVE DONE IN THE PAST BUT OUR RISE TO POWER.

  9. #24
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Name an operating system that isn't written in C?

  10. #25
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > i've sure seen some pathetically slow crap written in C

    This is not the language, it's the programmer. If the programmer write efficient code, then the program runs fast. If he doesn't, well then it won't run fast or how you want it to. This has nothing to do with the language.

  11. #26
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    well.. it does depend somewhat on the language, i.e. DarkBasic, the slowest piece of programming babble every set for to the world. or think of assembly, that will run faster optimized than C optimized with the basic same amount of code.

    i dunno, i'm not an expert on this. I'm sure some of you guys can prove me wrong.

  12. #27
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > DarkBasic

    Oh, I've never heard of that version of BASIC. How many versions are there? And why?

    --Garfield

  13. #28
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    > and why?

    My thought exactly.

    BASIC is dead! live with it!

  14. #29
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > BASIC is dead!

    After C was designed, BASIC never lived.

  15. #30
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    hehe.. people should write stuff in the form of C, not in the form of basic.
    I'm sick of working with sucky basic clones that promise lots but never work out.

Popular pages Recent additions subscribe to a feed