![]() |
#1 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
![]() Ok, I have made a sample .cpp file...and here is the code. Im using Notepad++
code: /* This is a simple C++ program. Call this file Sample.cpp. */ #include <iostream> using namespace std; // A C++ program begins at main(). int main() { cout << "C++ is power programming."; return 0; } This is where i run into problems, how can I compile it? My original though was using the Visual C++ compiler code, which is something liek this: C:\...>cl -GX Sample.cpp coares that wouldn't make sense, as i dont have visual C++, i only HAVE notepad++. I need a way to compile my .cpp file, any suggestions? or could i make a simple compiler myself? If i got the code, and the compiler was a .exe or something, that compiled .cpp to .exe or something, I could do it, coares i'd need to know how to do that first. ANYWAYS, so i need help compiling my .cpp file. |
||
![]() ![]() |
|
![]() |
#2 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
|
![]()
__________________
![]() |
||
![]() ![]() |
|
![]() |
#3 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
![]() Oh thanks!
|
||
![]() ![]() |
|
![]() |
#4 | ||
![]() ![]() ![]() Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
![]() Here's the one I use: DevC++ 4.9.9.2 (Beta 5)
To compile your sample code, just load it in Dev and hit the compile button. |
||
![]() ![]() |
|
![]() |
#5 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
![]() using DevC++, i put the .cpp file in, and said compile, and it said it did, but to where did it compile? And when i clicked "run", the command prompt would open for like 1/8th of a second then close. Hm
ANYWAYs, while i figure this out, ima also make more codes.
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
![]() ![]() |
|
![]() |
#6 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
|
![]() fubb, if you don't know what are you doing, don't do it
__________________
![]() |
||
![]() ![]() |
|
![]() |
#7 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
![]() well no my pc just down't agree with the Comand Prompt whatsoever. Maybe if they were .bats...
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
![]() ![]() |
|
![]() |
#8 | ||
![]() ![]() ![]() ![]() Join Date: Aug 2007
Location: Dixmuide, Belgium
Posts: 2,767
|
![]() Story of my life, never know what I'm doing, but I do it anyway.
:bleh:
__________________
Not a member of The Victorious People's Shoutbox Liberation Army. Not a member of the GAG Guerrilla. Don't get A Grip! FOR RENT *Advertising space* |
||
![]() ![]() |
|
![]() |
#9 | ||
![]() ![]() ![]() Join Date: Jan 2008
Location: Christchurch, New Zealand
Posts: 1,044
|
![]() Probably because it prints it then quits. Put a system("pause"); before return 0; and you will also need to add #include <stdlib.h> below #include <iostream> (well, I think stdlib.h is the right one...)
|
||
![]() ![]() |
|
![]() |
#10 | ||
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
|
![]() kk thanks!
__________________
Kugarfang: o hai guiz im trying to find this techno song from the radio and it goes like this: DUN duuuunnnn dudududududun SPLOOSH duuunnnnn We ate the horse. |
||
![]() ![]() |
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Discworld & Fable halp! | Fubb | Troubleshooting | 5 | 30-05-2008 08:26 AM |
Halp! | Marvin | Old Suggestions | 11 | 14-12-2007 08:45 PM |
|
|
||
  |