GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Nov-2004, 19:07
onauc onauc is offline
New Member
 
Join Date: Nov 2004
Posts: 28
onauc is on a distinguished road

versions


Hi,

There are many versions of C and C++ built by many different companies.
So, which version :

1. more easier to learn
2. more easier to remember
3. more easier to debug
4. helps me find errors fast and professionally
5. more portable
6. has the biggest community
7. has more tutorials widely available
8. has it’s source code all over the internet
9. and so on

If C++ is an extension of C then why isn’t it called the new version of C instead of having a different name ?
And, why isn’t it called C+ instead of C++ ?
Was there ever a C+ ?
Who created the C++ and why couldn’t they give a different name instead of copying the name from C ?
Anything else I should know ?
  #2  
Old 19-Nov-2004, 23:49
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by onauc
Hi,

There are many versions of C and C++ built by many different companies.
So, which version :

1. more easier to learn
2. more easier to remember
3. more easier to debug
4. helps me find errors fast and professionally
5. more portable
6. has the biggest community
7. has more tutorials widely available
8. has it’s source code all over the internet
9. and so on
C is C. It is a procedural language.
C++ is C++. It is based off C, but is has Object Oriented enhancements.

Stick with the standard language and don't get caught using specific functions defined in the compiler you choose and all the above questions go away.

Quote:
Originally Posted by onauc
If C++ is an extension of C then why isn’t it called the new version of C instead of having a different name ?
Because it isn't C. It's a different language with C as a base.

Quote:
Originally Posted by onauc
And, why isn’t it called C+ instead of C++ ?
'cuz it isn't. Why are apples called apples?

Quote:
Originally Posted by onauc
Was there ever a C+ ?
No.

Quote:
Originally Posted by onauc
Who created the C++ and why couldn’t they give a different name instead of copying the name from C ?
Bjourne Stroustrup. See above.

Quote:
Originally Posted by onauc
Anything else I should know ?
Yes. Learn the language and stop asking questions that you don't need to know yet and have no bearing on whether the language works or not. The questions you're asking won't help you learn the language.
__________________

Age is unimportant -- except in cheese
  #3  
Old 20-Nov-2004, 09:48
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,539
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice
Quote:
Originally Posted by onauc
And, why isn’t it called C+ instead of C++ ?
Was there ever a C+ ?
C++ was used as the new name because it's an update of the original C. It has many enhancements to make programming easier, most notably OOP.

Note: Polymorphism is the key to OOP. If a language allows use of classes but doesn't include polymorphism, then it's called an object-based language, not object-oriented. Polymorphism just means that the program determines which overloaded function to call at run-time instead of compile-time.

Anyways, C++ was used instead of C+ because "++" is the increment operator. Hence, C++ is the next increment of C. If this naming scheme is continued, the next version would probably be C+2.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
  #4  
Old 20-Nov-2004, 10:13
cable_guy_67's Avatar
cable_guy_67 cable_guy_67 is offline
Senior Member
 
Join Date: Oct 2004
Location: Nescopeck, PA
Posts: 1,109
cable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the roughcable_guy_67 is a jewel in the rough
Quote:
Originally Posted by crystalattice
Anyways, C++ was used instead of C+ because "++" is the increment operator. Hence, C++ is the next increment of C. If this naming scheme is continued, the next version would probably be C+2.

My vote would be for "C+=2"
__________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work."
--Thomas Alva Edison
"Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety."
--Benjamin Franklin
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes."
--Hugh Downs
  #5  
Old 20-Nov-2004, 11:03
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,539
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice
The ultimate C naming scheme
CPP / C++ / C Code:
for (;;)
{ 
   c++;
}
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
  #6  
Old 20-Nov-2004, 12:48
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 890
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
I remember reading on a (different) forum a thread about "Why was C# named C#?".
I really had a blast when reading all the different (but engineous) explanations; I really enjoyed one in particular: a guy was saying it was "C++" with another "++" added below.

Somehing like:
Code:
My own drawing - hold the applause ___ | -/--/- |__-/--/- ___ | -|--|- |__ -|--|-

Hope I didn't bore you too much

Best regards,
Luci
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #7  
Old 20-Nov-2004, 16:25
onauc onauc is offline
New Member
 
Join Date: Nov 2004
Posts: 28
onauc is on a distinguished road

still.......


You know, when my brother was learning C in college I took an interest and learned a little (that was back in 1998. I have forgotten C by now) but shall I tell you what really put me off ?
In his class, they were teaching him one version of C, while the college computers had another version of C and so even though their codings were correct they kept getting error signs. And some-times, when they made mistakes in their codes they could not really tell whether they really have made errors or whether that version of C was not accepting the other C version’s correct codings.
I tried learning C from his notes but the compiler he had installed in his computer (can’t remember where he got it from and what version it was) was one version and his school notes were regarding another version. And so, the countless hours trying to find the bugs in my codes (if there really was any) and failing to fix it (in that version) of C put me off.
And that is why, I must have the right version of C tutorial that will match my C compiler version as-well as the tutorials in the book and online tutorial.
And there-fore, I am going to ask you a lot of questions to help me spot the right version whose tutorials are widely found on the books and online tutorials etc.
This is the scenario I am dreading :

a) I get one version (compiler) but
b) I get a book on another version (compiler) and
c) I read a tutorial on the internet on another version (compiler)

Result : The codes which I will use from the tutorials will not work on the version (compiler) I have installed on my computer. Thus start the whole frustration circle all over again. I don’t want to go back-wards in life but forward.

Ok, can you all please tell us all now :

1. why you learned programming and
2. why you picked C over the other languages and
3. when you first learned C and
4. how long it took you to learn it and
5. which simple programs you have written in C and what does it do and how long it took you to write it
6. which non-simple programs you have written in C and what does it do and
7. whether you have made any money selling the softwares you have written in C and
8. whether you take-on custom projects that you write in C and for how much and
9. the links where you get or got your C tutorials from and
10. where you got your C compiler from as-well as details of which version it is and
11. whether you got the Compiler for free or had to pay a little because it came with some other handy software on the side and if so then what were these handy tools and how much in total did they all cost and
12. where do you recommend I should get my C compiler from that is better than all the rest because it comes with some extra handy features on the side to help me find errors in my code writings quickly and helps me develop softwares quicker with less head-ache and
13. which C compiler version is widely used and
14. which version’s tutorials is widely available on the books and
15. which version’s tutorials is widely used on the internet and
16. with which version do custom software developers develop custom softwares and
17. anything else you want to add

I will tell you what my first project was that I was working on without a tutor.
I was learning C from my brother’s notes.
It was a software that would ask you some-thing like this :

Q. What is your webpage’s Title ?
Q. What is your webpage’s Heading ?
Q. What is your webpage’s Paragraph ?
And so on.
Assume you input the title as “my personal homepage”, heading as “get to know me better”and paragraph as “frankly, you won’t personally know me better by starting at some text on your screen.”
The program would spit-out :

<Html>
<Title>my personal homepage</title>
<head>get to know me better</head>
<body>
frankly, you won’t personally know me better by starting at some text on your screen.
</body>
</html>

Yeah, I was trying to write my own version of front-page just to play around with-it. I was thrilled that I was writing my own software that interacts with me.
And the silly errors that I was getting put me off.
My brother had a look at the codes and he said there was no errors but because I was using the codes of one version in another version’s compiler it was showing me error signs. After a few days, I quit the project and C altogether.
Don’t want the same happening all over again.

Thanks
Last edited by onauc : 20-Nov-2004 at 16:59. Reason: put the signature by mistake
  #8  
Old 20-Nov-2004, 16:55
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,539
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice
Well, you know the proverb: "The longest journey begins with one step." Good luck! 8-)
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
  #9  
Old 20-Nov-2004, 19:29
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by onauc
You know, when my brother was learning C in college I took an interest and learned a little (that was back in 1998. I have forgotten C by now) but shall I tell you what really put me off ?
In his class, they were teaching him one version of C, while the college computers had another version of C and so even though their codings were correct they kept getting error signs. And some-times, when they made mistakes in their codes they could not really tell whether they really have made errors or whether that version of C was not accepting the other C version’s correct codings.
His instructor was a fool. The instuctor was teaching a specific dialect of C, not Standard C. This is something instructors should not do. As I said, learn Standard C. Ignore the 'dialect' or the added functions for that compiler. They aren't necessary to learn how to code. All compilers have these extra commands, it's up to you to learn from a book that does NOT teach specifically for one compiler.
__________________

Age is unimportant -- except in cheese
  #10  
Old 20-Nov-2004, 20:44
TerryPearson TerryPearson is offline
New Member
 
Join Date: Nov 2004
Location: Minnesota, USA
Posts: 20
TerryPearson will become famous soon enough
You may be comforted by the fact that there was an ANSI ISO standard approved for C++ in 1998. Most modern compilers meet that standard. Also, a version of C++, known at the ISO as C++0x, is in the works which will include many extended features of the Standard Template Library.

As a side note, I just got done reading on the ANSI ISO C++ website about some of the changes that are being looked at for C++0x. They look interesting, such as adding more support for networking.

As far as choosing a compiler, if you are using windows, I would go with an integrated developement enviroment such as Bloodshed Dev C++. It uses the Mingw compiler(which is a port of gcc). Do a google search to find it. It is open source, so if you like it, send the author a little thankyou donation. It is one of the best open source IDE's I have used so far. It is ANSI ISO complient, so you need not fear that you will get used to a compiler that is not standard. And if you decide that you don't like Dev C++ you are not out anything since it is a free download.

Hope this helps a little bit.
 
 

Recent GIDBlogFlickr uploads of IA pictures by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
which language ? onauc C++ Forum 2 19-Nov-2004 02:53
CVS - Concurrent Versions System JdS Web Hosting Forum 6 23-Oct-2002 09:06

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:59.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.