Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 14-11-2008, 11:30 PM   #1
Fubb
GreatCanadianMan
 
Fubb's Avatar


 
Join Date: May 2008
Location: Swan River, Canada
Posts: 842
Default New to C++, and need halp!

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.
Fubb is offline                         Send a private message to Fubb
Reply With Quote
 


Similar Threads
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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 06:43 AM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.