The Daily Click ::. Forums ::. Non-Klik Coding Help ::. running a c++ program
 

Post Reply  Post Oekaki 
 

Posted By Message

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
10th February, 2005 at 14:44:58 -

how do you run a program made in c++. when i click run, it says "c:\ document and settings... text1 file not found" and all sort of crap. when i click compile it says "no compile tool associated with the file extension". is it because i need a compiler. and where can i get one. it's like looking for graphic, they keep sending you to another site, and you end up with nothing.

 
Visit www.crobasoft.com or you're a Noob.

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
10th February, 2005 at 15:24:56 -

Ok wtf sounds like you have no idea what you're doing at all.
Get Dev-C++ (its free), and read some tutorials. Google for both.

 
- Tigerworks

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
10th February, 2005 at 15:48:36 -

you have to save the files as .c or .cpp or it won't compile them

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
10th February, 2005 at 16:11:33 -

yes i dont have any idea on what i do. i just had the money, and then bought the dam thing.
i managed to track down this site
http://www.bloodshed.net/dev/devcpp.html
but the link is broken.
but how do i save it as a c or cpp file.


Image Edited by the Author.

 
Visit www.crobasoft.com or you're a Noob.

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
10th February, 2005 at 18:27:42 -

Broken? Works fine for me. http://prdownloads.sourceforge.net/dev-cpp/devcpp4991setup.exe?use_mirror=unc

Ignore the other thing I said, this will do that for you. And yeah, you'll need a tutorial like Tigs said, otherwise you're just jumping into the deep end

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
11th February, 2005 at 02:48:43 -

okay i finally got it, but what do i do now. all of those beginner tutorials doesnt explain shit. they say this tutorial is for people there dont even know what scripting is. then they give you a short explain on what the c++ is. then they start giving you those examples there print text to the screen. then they say now run it. congratulations you just made your first c++ program. when they tell it's a newbie tutorial why the hell cant they exlpain how you run it.
i still cant run it. i can run it from dev but it's the same thing with c++.

 
Visit www.crobasoft.com or you're a Noob.

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
11th February, 2005 at 05:29:41 -

It's teaching you how to make C++, not how to use a compiler. Different people use different compilers and editors.

In Dev-C++:

1. Start a new project, and pick console application
2. Edit and save Main.cpp. You know how to save, right?
3. Go to Execute -> Compile to make it into an exe
4. Run the exe yourself or go to execute -> run


 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
11th February, 2005 at 05:49:50 -

Thanks so much. but im confused, if you do all from the compiler then what is c++ for

 
Visit www.crobasoft.com or you're a Noob.

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
11th February, 2005 at 06:22:35 -

The C++ is the code you use, the compiler makes it into an exe so you can run it

 
n/a

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
11th February, 2005 at 06:28:36 -

Yeah, C++ is just a language. A compiler turns C++ code into something you can run on a computer. Same goes for any other language... BASIC, PASCAL, COBOL, and even MMF/TGF/KNP to an extent

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
11th February, 2005 at 10:22:09 -

yes i know. but when you are writing programs in c++, do you write the source in c++, and then open it in a compiler and then compile it.

 
Visit www.crobasoft.com or you're a Noob.

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
11th February, 2005 at 12:50:23 -

pretty much, yeah.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Herb



Registered
  24/02/2004
Points
  264
11th February, 2005 at 12:58:06 -

No, you write the source in French and put it through a latin translator, before compiling it with notepad.

Duh.

 
Quality.

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
11th February, 2005 at 14:09:00 -

how do i compile it with notepad
thanks for your help, and thanks for being patient.

 
Visit www.crobasoft.com or you're a Noob.

Blade0rz



Registered
  21/12/2004
Points
  2
11th February, 2005 at 14:41:12 -

In notepad, put the line:
"/compilethisfile" at the end of the source
Then go to File > Save As... > Something.cox

 
n/a
   

Post Reply



 



Advertisement

Worth A Click