How to start

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

Join Date: Dec 2006
Posts: 3
Reputation: Ryan Steyn is an unknown quantity at this point 
Solved Threads: 0
Ryan Steyn's Avatar
Ryan Steyn Ryan Steyn is offline Offline
Newbie Poster

How to start

 
0
  #1
Dec 14th, 2006
Hi there everyone, im new to programming and havent the faintest clue where to start (just so you know:rolleyes: ) . I want to learn C++ but havent the apps to test or write it. I downloaded the microsoft visual studio and it confused the hell outa me. Can anyone recommend a free app i can use to write and view my C++?

I have php pad which allows me to write but doeant have any option to view, what is a compiler? i know windows has one but how does it work?

Show pitty on the programming noob, maybe i can hook you up with some seo advice in return :cheesy:
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,681
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 264
Lerner Lerner is offline Offline
Posting Virtuoso

Re: How to start

 
0
  #2
Dec 14th, 2006
Compilers turn the code you write into instructions your computer will understand. A linker links files to your program and finds the functions and variables contained within those files. An IDE (Integrated Development Environment) usually contains both a compiler and a linker and also usually has other software bundled in like a debugger, etc. I found that the free downloadable IDE called Dev C++ was pretty much download and go, but others have reported some difficulty setting it up. There are other IDEs as well, and someone may be able to help you set up your version of MSVC if you post what steps you've taken and explain the problem(s) you are having in as much detail as you can; include what OS you are using.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,660
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 723
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: How to start

 
1
  #3
Dec 14th, 2006
>I downloaded the microsoft visual studio and it confused the hell outa me.
Anything will at first. Either you have to deal with the complexity of an IDE (that's a compiler, debugger, editor, etc.. all rolled up into one graphical application), or the complexity of learning command line tools. You should learn both, but starting with an IDE will probably be easier. Since you already have Visual Studio, I can walk you through setting up a project and testing it.

Step 1) Go to File->New->Project
Step 2) From the project templates list, choose Empty Project[1]
Step 3) Type in whatever name you want for the project and hit OK
Step 4) Look for the Solution Explorer[2] and right click on the Source Files folder
Step 5) Choose Add->New Item
Step 6) From the templates list, choose C++ File (.cpp) and call it something like main, then click Add. Now the text editor has a text file in it called main.cpp.
Step 7) Paste this code into the editor:
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. using namespace std;
  6.  
  7. cout<<"Hello, world!\n";
  8. }
Step 8) Type ctrl+F7 to compile the code
Step 9) Type ctrl+F5 to run it

After the project is set up, the work is minimal. If you want, you can just reuse the same project until you're more comfortable with the IDE.

>what is a compiler?
Simple answer: A compiler turns your source code into a working program.

[1] This is always a good idea because if you don't choose an empty project, Visual Studio will add confusing any annoying junk like precompiled headers.

[2] The default location is on the left side as a docked tool window.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 3
Reputation: Ryan Steyn is an unknown quantity at this point 
Solved Threads: 0
Ryan Steyn's Avatar
Ryan Steyn Ryan Steyn is offline Offline
Newbie Poster

Re: How to start

 
0
  #4
Dec 14th, 2006
Unfortunately i have already deleted msvc and i dont think im gonna get away with another 98mb download at work I am using winXP and my primary is to learn various languages and need one as a base, from what i have discovered c++ is the way forward, complicated but worth it. I will download an ide asap and get back to you with results.

Thanks For your help
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,407
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: 1468
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: How to start

 
0
  #5
Dec 14th, 2006
I think Dev-C++ will be easier for beginners to learn the language because it doesn't have as complex an IDE as MSVC. Once you get to the place when you want to start writing MS-Windows gui programs then you should probably switch to the Microsoft VC++ 2005.
Last edited by Ancient Dragon; Dec 14th, 2006 at 11:26 am.
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: Oct 2006
Posts: 19
Reputation: newbie2c++ is an unknown quantity at this point 
Solved Threads: 0
newbie2c++ newbie2c++ is offline Offline
Newbie Poster

Re: How to start

 
0
  #6
Dec 14th, 2006
I'm total newbie too and I'm also using the dev-c++ and its the easiest to learn I think. hope that helps!
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 3
Reputation: Ryan Steyn is an unknown quantity at this point 
Solved Threads: 0
Ryan Steyn's Avatar
Ryan Steyn Ryan Steyn is offline Offline
Newbie Poster

Re: How to start

 
0
  #7
Dec 15th, 2006
Hectic, it does work really well, especially compared to the other things ive tried I almost panicked when the hello world app wouldnt compile but then it did... and worked... shweet, thanks alot guys, i look forward to finding out more about the quirks after i get the basics in my veins
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,187
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 532
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: How to start

 
0
  #8
Dec 15th, 2006
yes, dev c++ is the best for learning
theres lots fo good c++ tutorials on the net
If i am helpful, please give me reputation points.
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: How to start

 
0
  #9
Dec 15th, 2006
Glad to hear it worked. For learning more about C/C++, you should definitely check out the Starting "C" and C++ Books threads. Online tutorials will only get you so far, so if you're serious about learning it, you should buy yourself a book.
"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: Apr 2005
Posts: 16,187
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 532
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: How to start

 
0
  #10
Dec 16th, 2006
some c++ books are too fst paced for my liking so go for something slow and simple - stay away from any visual c books (graphical applications) and concentrate in learning the basics via text applications first
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC