Wrox Programmer Forums
|
Intro Programming What is a loop? Which language is best for beginners? What is "object oreinted?" All those types of questions and more are welcome here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Intro Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 6th, 2008, 03:59 PM
Registered User
 
Join Date: Apr 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help on C++

I've just WROTE out my first C++ source code in notepad.
I've saved it in 3 different file formats with no luck.
All I want it to do is display one word but i can't do it.

I've heard of a compiler...?
What is this and how would I get one I guess!

Thankyou very much in advance :D

P.S. Say if you would like me to copy and paste the source code (it's only short)

Reply With Quote
  #2 (permalink)  
Old March 9th, 2010, 09:14 PM
Registered User
 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

in order to execute your program you have to compile it first. the compiler is a program that takes your c++ program as input and generates an object file as output. the object file has .obj extension. then it links your .obj file with other c++ class libraries to make an executable file with .exe extension. after all these done you can see the result of your program. but if you are a beginner i extremly suggest to use a tool like borland c++ 5.02
or visual c++ to get rid of the burden of linking and similar tasks.
for exaple if you use borland c++ creating a program is as easy as following steps below:
1-open borland c++
2-write your program in its editor
3-press ctrl+f5 for the compilation and linking be done
4-press f5 to execute your program
5-enjoy the result!
Reply With Quote









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.