What's the difference??
C and C++
Miscellaneous Forums/General Discussion/C and C++ [a]http://en.wikipedia.org/wiki/C++#Features_introduced_in_C.2B.2B[/a]
edit: Screw you, forums!
edit: Screw you, forums!
thanks
Basically, C++ was built on top of traditional C to add support to object oriented programming concepts. It mixed traditional imperative programming with OO, leading to some design flaws. Some newer languages like C# or Java work on the same basis but have a more clear and consistent syntax.
Yes & C# has the learnuing curve of Visual Basic & more power than C++. It's actually proven.
Where's the proof, then?
That's like asking "what's the difference between FORTRAN and Python". The answer is "everything".
Basically, C++ was built on top of traditional C to add support to object oriented programming concepts.
It was not "built on top of traditional C". It was SIMULA retrofitted to use C syntax and operators, and implemented using a preprocessor to the standard C compiler in 1979 back when computers were too slow to be generally useful, and performance was a big deal. Yes & C# has the learnuing curve of Visual Basic
Visual Basic is an atrocity! C# (the language, not the .Net framework) is a lean, mostly consistent and semi-compact language. C# is much easier to learn and use then Visual Basic. Where's the proof, then?
In ze bible. The idea that programming language x is "more powerful" than programming language y is absurd. Not only is powerful a subjective and abstract term in the context of programming languages (because it depends on the context), but it is entirely unmeasurable. @flameDuck:
In ze bible. The idea that programming language x is "more powerful" than programming language y is absurd. Not only is powerful a subjective and abstract term in the context of programming languages (because it depends on the context), but it is entirely unmeasurable.
Well put!
In ze bible. The idea that programming language x is "more powerful" than programming language y is absurd. Not only is powerful a subjective and abstract term in the context of programming languages (because it depends on the context), but it is entirely unmeasurable.
[a]http://en.wikipedia.org/wiki/C++#Features_introduced_in_C.2B.2B[/a]
edit: Screw you, forums!
edit: Screw you, forums!
[a http://en.wikipedia.org/wiki/C++#Features_introduced_in_C.2B.2B]Wikipedia Link[/a]
Visual Basic is an atrocity! C# (the language, not the .Net framework) is a lean, mostly consistent and semi-compact language. C# is much easier to learn and use then Visual Basic.
This is true. Visual Basic, to me, has the learning curve of a 98 degree wall. The syntax and language features are a mess of trying to resemble old BASIC while implementing new features, and it just doesn't work as far as I'm concerned. BlitzMax is a good example of how BASIC languages have evolved I think, but then that's not saying much because what I think is about as welcome as a gas leak. In ze bible. The idea that programming language x is "more powerful" than programming language y is absurd. Not only is powerful a subjective and abstract term in the context of programming languages (because it depends on the context), but it is entirely unmeasurable.
That was more or less my point, except in less words because I felt it was more biting to just demand proof. I've asked for proof of god and later that night I found a bible in my pillow case. A bible in a pillow case behind three locked doors and in my personal space. I desperately want to know what the person who did it was thinking, but I suspect it's along the same lines of what LilMain is thinking. "That's like asking "what's the difference between FORTRAN and Python"
I dont attend this forum so often but now I can understand your answer about my previous thread : FSM \NN's comparison
How is it seriously possible to give an answer like that ?
If they call it C++ , it is evident that C++ is supposed to be an enhanced version of C
however chwaga
The syntax is about the same
C++ extends the concept of C structure
A C++ class can include also functions not only variables, which are called methods
A class is the core of the famous Object Oriented Programming (OOP)
The main advantage of OOP over the traditional programming languages, are
- Data incapsulation
- Code re_usability
- Data protection
Dont assume that OOP fita all.
If you abuse of it , OOP can be nightmare
I dont attend this forum so often but now I can understand your answer about my previous thread : FSM \NN's comparison
How is it seriously possible to give an answer like that ?
If they call it C++ , it is evident that C++ is supposed to be an enhanced version of C
however chwaga
The syntax is about the same
C++ extends the concept of C structure
A C++ class can include also functions not only variables, which are called methods
A class is the core of the famous Object Oriented Programming (OOP)
The main advantage of OOP over the traditional programming languages, are
- Data incapsulation
- Code re_usability
- Data protection
Dont assume that OOP fita all.
If you abuse of it , OOP can be nightmare
If they call it C++ , it is evident that C++ is supposed to be an enhanced version of C
If by "they" you mean "Bjarne Stroustrup" then the original name was "C with Classes". It wasn't called C++ until 1984. Since you're such a big fan of reading I suggest you read "The Design and Evolution of C++" by Bjarne Stroustrup. The guy who invented the language. ehh.. getting of thread, but VBasic6.0 ain't so bad, I set up my .ini(s) for my BMAX exes with it, and run my BMax Exes from it. Am dipping my toe into C++, would I be better of delving into C#?
Personally i think C++ is a jumbled mess that just happens to have similar syntax to C.
Maybe thats why i find this funny? http://www-users.cs.york.ac.uk/susan/joke/cpp.htm
Maybe thats why i find this funny? http://www-users.cs.york.ac.uk/susan/joke/cpp.htm
C is an 8 valve motor
C++ is an 16 valve motor with variable valve timing
C# is an 16 valve motor installed on a Tracker...
C++ is an 16 valve motor with variable valve timing
C# is an 16 valve motor installed on a Tracker...
C# is a 16 valve motor on a cereal bar.... hmm not much use then ?
Actually, C# you're better off developing in than C++. C++ is good & yes industry Standard, but C# is slowly making it's way up, Most projects are now being designed to be developed in C# now. Blizzard by next year will soon be using C# for their tools. Other companies, such as BigFishGames are using C# for tools.
Well, since people see that the industry is really only using C# for tools then people think that C# is only good for C#. I am currently in a project as a C# programmer, working on the engine completely just with C#, we're also using XNA. We might just change it to DirectX 10 though. Well, we have the Map Editor on a demo as of right now & it's made with just C#/XNA. C# actually gives more speed than our C++ projects. Also, we got this Map Editor done faster than we did when done in C++.
I always highly recommend C# over C++ unless you want a job in the industry as a game programmer & not a tools programmer. I know C++, Visual Basic 6, BlitzMax, BlitzPlus & still a beginner in C#. I plan on making my own 2D Isometric Open-Source Game Engine in C#. Make it for RTS games. Although, I do need more experience with C# before I go & do that.
Here's the proof!
http://blogs.msdn.com/jonathanh/archive/2005/05/20/optimizing-managed-c-vs-native-c-code.aspx
Now, there's no proof that it's has easy and/or easier than VB6, it'smore of my opinion of my experience.
Also, the project I am talking about is Arkland Online. Google it!
Arkland Online is a C#/XNA based 2D MMORPG, in an urban/modern setting. Arkland uses C# for the base engine, but all in game coding will be done using our man-made coding language, #arkscript.
Although sprites/buildings and such are going to be 2D, the terrain engine we are creating will transform 2D tiles to have somewhat of a 3D aspect, so we can have hills and such. #arkscript.
Well, since people see that the industry is really only using C# for tools then people think that C# is only good for C#. I am currently in a project as a C# programmer, working on the engine completely just with C#, we're also using XNA. We might just change it to DirectX 10 though. Well, we have the Map Editor on a demo as of right now & it's made with just C#/XNA. C# actually gives more speed than our C++ projects. Also, we got this Map Editor done faster than we did when done in C++.
I always highly recommend C# over C++ unless you want a job in the industry as a game programmer & not a tools programmer. I know C++, Visual Basic 6, BlitzMax, BlitzPlus & still a beginner in C#. I plan on making my own 2D Isometric Open-Source Game Engine in C#. Make it for RTS games. Although, I do need more experience with C# before I go & do that.
Here's the proof!
http://blogs.msdn.com/jonathanh/archive/2005/05/20/optimizing-managed-c-vs-native-c-code.aspx
Now, there's no proof that it's has easy and/or easier than VB6, it'smore of my opinion of my experience.
Also, the project I am talking about is Arkland Online. Google it!
Arkland Online is a C#/XNA based 2D MMORPG, in an urban/modern setting. Arkland uses C# for the base engine, but all in game coding will be done using our man-made coding language, #arkscript.
Although sprites/buildings and such are going to be 2D, the terrain engine we are creating will transform 2D tiles to have somewhat of a 3D aspect, so we can have hills and such. #arkscript.
ehh.. getting of thread, but VBasic6.0 ain't so bad,
Yes it is. It is the language Satan forces you to use in Hell. Maybe thats why i find this funny?
Classic! :o> >Yes it is. It is the language Satan forces you to use in
>Hell.
Some of us have used Commodore BASIC V2.
>Hell.
Some of us have used Commodore BASIC V2.
Here's the proof!
http://blogs.msdn.com/jonathanh/archive/2005/05/20/optimizing-managed-c-vs-native-c-code.aspx
http://blogs.msdn.com/jonathanh/archive/2005/05/20/optimizing-managed-c-vs-native-c-code.aspx
Now I realize you understand that this "proof" is a "spoof", but just to make sure some C++ hater doesn't get deceived (I've seen it happen) by this article, remember:
And yes, it is a spoof
Personally i think C++ is a jumbled mess that just happens to have similar syntax to C.
C++ isn't a perfect language, but neither is any other (QBasic, for example). And FYI, it's not any coincidence that it has practically identical syntax to C. It's was called C++ for a reason (or "C With Classes", if you want to quibble).
I agree that C# seems to be "better" than C++ in that it solves many of the old problems often associated with C++ and is a much more "modern" language, but I really haven't used it enough yet to tell whether it's really "better" in the long run or not.
Regarding VB, I personally do not like it at all as a development tool, but that's just an opinion. Yes, BASIC languages are easier to learn because they're more "verbose", but when you get into the programming (beyond the language, into the logic), I vastly prefer the curly brace style of C#/C++. But BlitzMax is actually one of the few BASIC languages that I still like.