10-14-2005, 12:24 PM | #1 |
FFR Player
|
Ok, what?
Ok, so I'm trying to learn C++ because we're doing VB in class and our class is moving extremely slowly. I don't understand what exactly a compiler is (I get what it does though) and where I can get one.
__________________
|
10-14-2005, 03:51 PM | #2 |
Away from Computer
|
RE: Ok, what?
A compiler is a program that converts source code into computer language. You need it or your program will just be a bunch of letters thrown into a file.
easy to install compilers can be bought at most computer stores I know there's a free one called GCC, you can find it online with google or something but its a pain to install & use you have to write your programs in notepad, save them as .c s and then go into dos prompt and compile it from there like gcc helloworld.c My school uses it, and I have it installed on my comp, it works, but it doesn't have the other compiler amenities (text editor GUI, etc)
__________________
|
10-14-2005, 04:49 PM | #3 |
FFR Player
Join Date: Dec 2003
Location: At My House
Posts: 989
|
RE: Ok, what?
Try Dev-C++. It is very easy to use and has an IDE. http://www.bloodshed.net/devcpp.html
__________________
|
10-14-2005, 05:57 PM | #4 |
FFR Player
|
RE: Ok, what?
Ugh, stupid everything...
Ok so I'm (tying to) follow this guide that tells me to write this code and compile it. I wrote it and saved it as .cpp Code:
#include <iostream.h> int main() { cout << "Hello World!\n"; return 0; } It (the guide) tells me to run Hello.exe but I can't find it in the folder where the .cpp file is or in the program folder.
__________________
|
10-14-2005, 06:01 PM | #5 |
FFR Player
Join Date: Dec 2003
Location: At My House
Posts: 989
|
RE: Ok, what?
Try using the "Compile and Run" option. It should be right underneath "Compile" in the "Execute" menu (or maybe above).
__________________
|
10-14-2005, 06:29 PM | #6 |
FFR Player
|
RE: Ok, what?
It says that its compiling and thats it. It closes and nothing runs.
__________________
|
10-14-2005, 07:06 PM | #7 |
FFR Player
Join Date: Dec 2003
Location: At My House
Posts: 989
|
RE: Ok, what?
Oh, add this statement on the line before "return 0;":
Code:
system("PAUSE");
__________________
|
10-14-2005, 07:29 PM | #8 |
Resident Penguin
|
RE: Ok, what?
there's probably torrents of visual C++ floating around somewhere. but ffr doesn't endorse that I'm sure.
the only compiler I've ever used is visual C++ |
10-14-2005, 08:48 PM | #9 |
FFR Player
|
RE: Ok, what?
More like there is a beta of Visual Studio 2005 on Microsoft's website if you search for it. It is a very nice thing to have (Personally I use Visual Studio 2003 with VisualAssistX [Nice add on to Visual Studio but expensive])
Also, ad0gg, its not a downside to Dec-C++. Every compiler will compile that code the same and it will run and then display nothing. Now, you can always open up the command prompt and then open up your exe from there. Then it will just return to the command prompt and not the OS. -----Soccr743----- |
10-14-2005, 09:35 PM | #10 |
The spice must flow.
|
RE: Ok, what?
In my CP class, the school sells us the 7 disc VS.net 2003 and library stuff for $7. They had it online for free, but it was using too much space, so the price comes from the CD's. Maybe I could hook you up with another copy.
__________________
Nice. |
10-15-2005, 06:04 AM | #11 | |
FFR Player
Join Date: Dec 2003
Location: At My House
Posts: 989
|
Re: RE: Ok, what?
Quote:
__________________
|
|
10-30-2005, 02:24 AM | #12 |
Hookers and Blow
|
RE: Re: RE: Ok, what?
static public void main(String[] args);
{ system.out.println ("FFR is teh suck!); Nah I'm joking. ROFL
__________________
|
10-30-2005, 06:03 AM | #13 | |
FFR Player
|
Re: RE: Re: RE: Ok, what?
Quote:
Code:
public static void main(String[] args) { system.out.println("FFR is teh suck!); } |
|
10-30-2005, 08:06 AM | #14 | ||
Summer!!
|
Re: RE: Re: RE: Ok, what?
Quote:
Code:
public static void main(String[] args) { System.out.println("FFR is teh suck!"); }
__________________
|
||
10-30-2005, 02:57 PM | #15 |
Hookers and Blow
|
RE: Re: RE: Re: RE: Ok, what?
ROFL at our Syntax errors.
__________________
|
11-3-2005, 09:20 AM | #16 |
嗚呼
|
I stole the disc with Visual Studio 2003 on it from my programming class last year. I am cool.
|
11-3-2005, 04:26 PM | #17 |
FFR Player
|
However, no Visual Studio 2003 setup is complete without that VisualAssist plugin from Whole Tomato. That thing is godly and worth the 99 dollars I paid for it.
If you do alot of coding in Visual Studio 2003, GET IT! -----Soccr743----- |
11-11-2005, 12:01 PM | #18 |
FFR Player
|
Want to explain exactly what it is, and what it does soccr?
__________________
I'll trade you this delicious doorstop for your crummy old danish. Done, and done. |
11-11-2005, 03:00 PM | #19 |
FFR Player
|
http://www.wholetomato.com/
Go there to see the features etc (More then just on that page) But in general it provides for MUCH IMPROVED syntax highlighting which even allows for different colors for local and non-local variables. It also has great variable, function, class, etc name support. If you have a function named getSuicidalMuskrat() then all you have to type is GSM and it will show the choice in the list (Makes for fast coding). This is much improved over "Intellisense" "(I think Microsoft calls it that). Worth every penny for people who are actually serious about programming. -----Soccr743----- |
11-11-2005, 03:05 PM | #20 | |
The Worst
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|