Question about C++

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

Join Date: Nov 2007
Posts: 25
Reputation: np2100 is an unknown quantity at this point 
Solved Threads: 0
np2100 np2100 is offline Offline
Light Poster

Question about C++

 
0
  #1
Aug 3rd, 2008
Hello, I was wondering about something. Whats the point of learning console programming (The black screen that comes up) when Win32 or another windows api has completely different syntax. Eventually the person will want to make an actual windows application so what would be the point of learning console first. Shouldn't they just start with win32 or another api?
Thanks, been wondering about this for a while.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Question about C++

 
0
  #2
Aug 3rd, 2008
Yes I agree, if that is your ultimate goal, but it is not everyones' - so no your point is invalid.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 25
Reputation: np2100 is an unknown quantity at this point 
Solved Threads: 0
np2100 np2100 is offline Offline
Light Poster

Re: Question about C++

 
0
  #3
Aug 3rd, 2008
Yea but what goal are people working towards when they start with console? Do they continue to make applications in console?
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Question about C++

 
0
  #4
Aug 3rd, 2008
> Do they continue to make applications in console?
Sure, all the time.

Console is perfect for testing out code ideas to make sure they'll work before you bury it inside several 1000 lines of GUI code which will just get in the way otherwise.

Many tools are essentially command line tools with a GUI stuck on the front end. Except nowadays, the command line is labelled "expert mode". Your compiler for example.

As well as being simple, it's also highly portable. It takes almost no effort to move a console program from one system to another.

> when Win32 or another windows api has completely different syntax.
The APIs change, not the syntax.
Learn C++ (the language)
Learn about the STL
Learn about boost
Then learn about the APIs relevant to your OS / Compiler.

> Shouldn't they just start with win32 or another api?
My analogy - learn to drive, then choose your car.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,953
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Question about C++

 
0
  #5
Aug 3rd, 2008
Yes... such applications are still made.

And no, the syntax doesn't change. The paradigm may change... All GUI programs (well... all good ones ) are event-driven. Console programs tend to be imperative (though many good ones are also event-driven).

The goal is to learn to properly use the language. That can be done in any UI environment, so for beginners it is usually easier to leave out all the overhead required to make GUI programs and stick to the C++ language itself instead of dinking around with external libraries.

There is no reason why you can't start with GUI programs though... Proper use and good design is important either way.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 401
Reputation: CoolGamer48 is on a distinguished road 
Solved Threads: 40
CoolGamer48's Avatar
CoolGamer48 CoolGamer48 is offline Offline
Posting Pro in Training

Re: Question about C++

 
0
  #6
Aug 3rd, 2008
As others have said - there is no change in syntax when using an API. You need to learn about C++ before you learn how to perform specific output with it (ie, a GUI). However, its very difficult to learn C++ when you have no means of outputting data. That's why you do console apps. It's very easy to perform simple I/O with the cin and cout objects.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
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: Question about C++

 
0
  #7
Aug 3rd, 2008
I'd be willing to bet that the vast majority of C++ developers rarely touch the Windows API directly. Even if you limit that group to just those who even develop applications for Windows platforms, much of the time the Windows GUI code is likely to be wrapped up in several layers of libraries which support the basic structure of the application, or even written using another language altogether
¿umop apisdn upside down?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: Question about C++

 
0
  #8
Aug 3rd, 2008
Originally Posted by np2100 View Post
Yea but what goal are people working towards when they start with console? Do they continue to make applications in console?
Some programs don't need human interaction directly. Just look at some of the programs that make up the software installed on your computer, or belong to your OS.
Frontends are often written for console apps later.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 3
Reputation: yap.nice is an unknown quantity at this point 
Solved Threads: 0
yap.nice yap.nice is offline Offline
Newbie Poster

Re: Question about C++

 
0
  #9
Aug 4th, 2008
i dont know to you... i adviced,, you better to study hard... did you get it??? c++ is a very easy programming language you must know it ha!!!
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