Do i need C to learn C++?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 17
Reputation: p.bondam is an unknown quantity at this point 
Solved Threads: 0
p.bondam's Avatar
p.bondam p.bondam is offline Offline
Newbie Poster

Re: Do i need C to learn C++?

 
0
  #41
Jan 5th, 2007
hello world,

it seems that i´m lost in the wrong forum, but i could recommend everyone to go to JAVA immediately.

I´m in the programming business since 1969 and learned the trade with ALGOL/60, the mother of all algorithmic languages.
I´m using JAVA since 2003 and find it a relief after a short flirtation with C.
I don´t know C++, but JAVA is said to be built on it´s fundamentals.
There is a lot of documentation, forums etc, and SUN, the company that makes JAVA, is very user friendly, delivers everything for free AND has a pleasant antagony to Bill Gates & friends.

An advice for a real newbie: buy the cheapest book on JAVA you can get and start from there.

Get a life...get Java.

peter bondam
maybe later
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 17
Reputation: p.bondam is an unknown quantity at this point 
Solved Threads: 0
p.bondam's Avatar
p.bondam p.bondam is offline Offline
Newbie Poster

Re: Do i need C to learn C++?

 
0
  #42
Jan 5th, 2007
what the heck are you all talking about?

peter
maybe later
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 209
Reputation: Ravalon is on a distinguished road 
Solved Threads: 15
Ravalon's Avatar
Ravalon Ravalon is offline Offline
Posting Whiz in Training

Re: Do i need C to learn C++?

 
0
  #43
Jan 5th, 2007
Originally Posted by p.bondam View Post
hello world
Hi!
Originally Posted by p.bondam View Post
I´m in the programming business since 1969 and learned the trade with ALGOL/60, the mother of all algorithmic languages.
I´m using JAVA since 2003 and find it a relief after a short flirtation with C.
I'm curious. You've been programming since 1969 and had a short flirtation with C. I understand short as probably 5 years or less. You've been using Java since 2003, so what were you using for the rest of the time? ALGOL60? :eek:
Originally Posted by p.bondam View Post
I don´t know C++, but JAVA is said to be built on it´s fundamentals.
There is a lot of documentation, forums etc, and SUN, the company that makes JAVA, is very user friendly, delivers everything for free AND has a pleasant antagony to Bill Gates & friends.
I can't reply to this without seeming inflammatory. I'm sorry.

I see a few things wrong with your logic if you're trying to convince people to use Java instead of C++.
  1. Most mainstream languages have a C ancestry. Being based on C++ isn't a selling point, it's a marketing ploy.
  2. C++ has plenty of documentation and a huge community as well. If you know where to look, you can find information on anything about C++, just like Java.
  3. I heard that Sun was just as vicious in business as Microsoft. The only difference is that Sun has decided to cash in on the open source wave rather than fight against it.
  4. C++ is completely free. Even more so than Java, in fact, because you're not forced into the JVM platform.
  5. C++ has nothing to do with Microsoft. I don't see how antagony to Bill Gates and friends implies that Java is a better choice than C++.
Originally Posted by p.bondam View Post
Get a life...get Java.
I tried Java. I even got the lapel pin. I didn't have any more of a life then than I do now.
It's hard to be humble when you're as gifted as I am at pretending to be an expert.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,473
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1477
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Do i need C to learn C++?

 
0
  #44
Jan 5th, 2007
I wouldn't even consider java for the programs I write -- too damned slow. To me java is only useful in web development and there are probably 10 times more development environments than that. So "use only java" is just not practical or even desireable.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Do i need C to learn C++?

 
0
  #45
Jan 5th, 2007
Originally Posted by p.bondam View Post
it seems that i´m lost in the wrong forum, but i could recommend everyone to go to JAVA immediately.
Although you can write just about anything with Java, that doesn't mean you should. Just like using the right tools for a job, there is no end-all programming language or tool to use. The key is to know which is the best to use. Even C++, the superset of C is not better, it's different. Some projects may be better in C++, some are better in C. Which is why this discussion still exists.

An advice for a real newbie: buy the cheapest book on JAVA you can get and start from there.
I don't know about you... but I sure wouldn't just walk into a bookstore and blow 20 or 30 dollars on a cheap Java book. You're better off buying a good book, even if it costs a bit more than other books.

Get a life...get Java.
Alright, you try to write a 3D first person shooter in Java and let me know how it goes.
Originally Posted by Ancient Dragon View Post
To me java is only useful in web development and there are probably 10 times more development environments than that. So "use only java" is just not practical or even desireable.
Agreed - although for some tasks, Java is not far behind good C++ compilers (or sometimes even ahead), a fairly impressive feat for Sun, considering that it's all interpreted bytecode.

http://kano.net/javabench/
http://mathsrv.ku-eichstaett.de/MGF/...nch/Bench.html
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
Last edited by John A; Jan 5th, 2007 at 7:36 pm.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 53
Reputation: markdean is an unknown quantity at this point 
Solved Threads: 1
markdean markdean is offline Offline
Junior Poster in Training

Re: Do i need C to learn C++?

 
0
  #46
Jan 6th, 2007
I always think that a programmer should know what's under the hood. I think that starting with Assembly and then moving up is something that new programmers should always do. It means that you have a good grasp as to what is going on and can optimize your code by getting closer to the CPU. I think that there are too many drag 'n drop or copy 'n paste programmers out there which leads to unstable applications. And you have HLA or High-Level Assembler languages that have made it much easier to program in Assembly.

It's an unpopular opinion but I'm glad I took the time years ago to go through x86 and 6800 assembler classes (these were geared for embedded devices) as it gave me a very good understanding of what is going on in the CPU and how the memory is being organized and utilized. It really gives you ultimate control over your system as well.
-MD
Sr. Enterprise UNIX Engineer
CNE/RHCE/VCP/MCSE/CLP/CCA
VM Computing
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Do i need C to learn C++?

 
1
  #47
Jan 6th, 2007
Originally Posted by markdean View Post
I always think that a programmer should know what's under the hood. I think that starting with Assembly and then moving up is something that new programmers should always do. It means that you have a good grasp as to what is going on and can optimize your code by getting closer to the CPU.
I disagree with the timeframe, but not the concept. Start with a higher level language like C/C++. Once you get a good grasp of programming concepts, then take assembler to see what's under the hood. Trying to learn the terse programming of assembler while trying to understand the concepts of programming in general is just too much IMO.

Originally Posted by markdean View Post
It's an unpopular opinion but I'm glad I took the time years ago to go through x86 and 6800 assembler classes (these were geared for embedded devices) as it gave me a very good understanding of what is going on in the CPU and how the memory is being organized and utilized. It really gives you ultimate control over your system as well.
I myself know PDP-10 and PDP-11 assembler as well as 80xxx, and have a basic understanding of a couple more, so I know where you are coming from. I do agree that knowing assembler is a great idea. It just shouldn't be the first language.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 489
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Solved Threads: 49
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

Re: Do i need C to learn C++?

 
0
  #48
Jan 6th, 2007
Originally Posted by WaltP View Post
I disagree with the timeframe, but not the concept. Start with a higher level language like C/C++. Once you get a good grasp of programming concepts, then take assembler to see what's under the hood. Trying to learn the terse programming of assembler while trying to understand the concepts of programming in general is just too much IMO.
I agree with that. Another poind i'd like to add is that alot of people only pick up a programming language as a passing interest, or maybe study it as part of a non-technical course. IMHO, there'd be little point in working at such a low level for someone whose main focus is elsewhere (such as website design, or business-IT)
¿umop apisdn upside down?
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,626
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 468
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Do i need C to learn C++?

 
0
  #49
Jan 6th, 2007
Originally Posted by markdean View Post
I think that there are too many drag 'n drop or copy 'n paste programmers out there which leads to unstable applications.
Performance never has been a problem when working with Drag and Drop type of RAD languages or tools (VB, Realbasic). All the optimization related things are taken care by the interpreter or the compiler which comes along with it.

Also there are Project Managers, Team leaders etc to take care of such unstability. Either this or I am missing your point ?
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 1
Reputation: Zacadx15 is an unknown quantity at this point 
Solved Threads: 0
Zacadx15 Zacadx15 is offline Offline
Newbie Poster

Re: Do i need C to learn C++?

 
-1
  #50
Aug 8th, 2009
Originally Posted by jan1024188 View Post
Thats because when "Hello word" is printed on a screen program ends and cmd clooses...
If you are using Dev C++ which is what i have been using, i am a beginner too, i ran into the same problem.

Here is the line of code that you need in order to keep the cmd window open and you can see your work.
Place this command at the bottom of your code, right above the return command.
___________________
system("PAUSE");
___________________

So for example

//Example
#include <iostream>
int main()
{ //bla bla program code

system("PAUSE");
return 0; // or something else
}

This will solve your problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC