they don't stand a chance against our cumulative millitary might.
C
C++
Both
they don't stand a chance against our cumulative millitary might.
> they don't stand a chance against our cumulative millitary might.
C/C++ OVERPOWERS!!!
--Garfield
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.
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
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!
Ditto that Troll_King. Couldn't have said it better myself.
Ramble on...
"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++.
i just want to say to gamegod:
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...Code:struct A { int a; int (*member_b) (); //pointer to function };
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.
> 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.
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.
> DarkBasic
Oh, I've never heard of that version of BASIC. How many versions are there? And why?
--Garfield
> and why?
My thought exactly.
BASIC is dead! live with it!
> BASIC is dead!
After C was designed, BASIC never lived.
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.