Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 10-14-2005, 12:24 PM   #1
super-smashman
FFR Player
 
super-smashman's Avatar
 
Join Date: Nov 2004
Location: No, I tacol.
Age: 34
Posts: 2,638
Send a message via MSN to super-smashman
Default 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.
__________________
super-smashman is offline   Reply With Quote
Old 10-14-2005, 03:51 PM   #2
chickendude
Away from Computer
FFR Simfile AuthorFFR Veteran
 
chickendude's Avatar
 
Join Date: Sep 2003
Location: Massachusetts
Age: 33
Posts: 1,901
Send a message via AIM to chickendude
Default 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)
__________________
chickendude is offline   Reply With Quote
Old 10-14-2005, 04:49 PM   #3
ad0gg
FFR Player
 
Join Date: Dec 2003
Location: At My House
Posts: 989
Default RE: Ok, what?

Try Dev-C++. It is very easy to use and has an IDE. http://www.bloodshed.net/devcpp.html
__________________
ad0gg is offline   Reply With Quote
Old 10-14-2005, 05:57 PM   #4
super-smashman
FFR Player
 
super-smashman's Avatar
 
Join Date: Nov 2004
Location: No, I tacol.
Age: 34
Posts: 2,638
Send a message via MSN to super-smashman
Default 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;
}
I installed Dev-C++ and I opened the hello.cpp file and went to Execute-> Compile. What next?

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.
__________________
super-smashman is offline   Reply With Quote
Old 10-14-2005, 06:01 PM   #5
ad0gg
FFR Player
 
Join Date: Dec 2003
Location: At My House
Posts: 989
Default RE: Ok, what?

Try using the "Compile and Run" option. It should be right underneath "Compile" in the "Execute" menu (or maybe above).
__________________
ad0gg is offline   Reply With Quote
Old 10-14-2005, 06:29 PM   #6
super-smashman
FFR Player
 
super-smashman's Avatar
 
Join Date: Nov 2004
Location: No, I tacol.
Age: 34
Posts: 2,638
Send a message via MSN to super-smashman
Default RE: Ok, what?

It says that its compiling and thats it. It closes and nothing runs.
__________________
super-smashman is offline   Reply With Quote
Old 10-14-2005, 07:06 PM   #7
ad0gg
FFR Player
 
Join Date: Dec 2003
Location: At My House
Posts: 989
Default RE: Ok, what?

Oh, add this statement on the line before "return 0;":
Code:
system("PAUSE");
That's the only downside with Dev-C++. You have to add that line in every program if you don't want it to quit immediately.
__________________
ad0gg is offline   Reply With Quote
Old 10-14-2005, 07:29 PM   #8
talisman
Resident Penguin
FFR Simfile AuthorFFR Veteran
 
talisman's Avatar
 
Join Date: May 2003
Age: 37
Posts: 4,598
Send a message via AIM to talisman
Default 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++
talisman is offline   Reply With Quote
Old 10-14-2005, 08:48 PM   #9
soccr743
FFR Player
Retired Staff
 
soccr743's Avatar
 
Join Date: Dec 2003
Posts: 549
Send a message via AIM to soccr743 Send a message via MSN to soccr743 Send a message via Yahoo to soccr743
Default 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-----
__________________
soccr743 is offline   Reply With Quote
Old 10-14-2005, 09:35 PM   #10
nickadeemus
The spice must flow.
Retired StaffFFR Veteran
 
nickadeemus's Avatar
 
Join Date: Aug 2003
Location: In the aeroplane over the sea
Posts: 807
Send a message via AIM to nickadeemus Send a message via MSN to nickadeemus Send a message via Skype™ to nickadeemus
Default 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.
nickadeemus is offline   Reply With Quote
Old 10-15-2005, 06:04 AM   #11
ad0gg
FFR Player
 
Join Date: Dec 2003
Location: At My House
Posts: 989
Default Re: RE: Ok, what?

Quote:
Originally Posted by soccr743
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.
KDevelop automatically adds that line (or something comparable to it), when it compiles. But, KDevelop does not have a Windows version, and I'm assuming you are using Windows.
__________________
ad0gg is offline   Reply With Quote
Old 10-30-2005, 02:24 AM   #12
Chromer
Hookers and Blow
Retired StaffFFR Veteran
 
Chromer's Avatar
 
Join Date: Jul 2003
Location: You heard the robot. No fun.
Age: 34
Posts: 4,981
Send a message via AIM to Chromer Send a message via Yahoo to Chromer
Default RE: Re: RE: Ok, what?

static public void main(String[] args);
{
system.out.println ("FFR is teh suck!);

Nah I'm joking. ROFL
__________________
Chromer is offline   Reply With Quote
Old 10-30-2005, 06:03 AM   #13
soccr743
FFR Player
Retired Staff
 
soccr743's Avatar
 
Join Date: Dec 2003
Posts: 549
Send a message via AIM to soccr743 Send a message via MSN to soccr743 Send a message via Yahoo to soccr743
Default Re: RE: Re: RE: Ok, what?

Quote:
Originally Posted by Chromer
static public void main(String[] args); <--
{
system.out.println ("FFR is teh suck!);
<--

Nah I'm joking. ROFL
You did that wrong btw :P

Code:
public static void main(String[] args)
{
     system.out.println("FFR is teh suck!);
}
__________________
soccr743 is offline   Reply With Quote
Old 10-30-2005, 08:06 AM   #14
lightdarkness
Summer!!
Retired StaffFFR Veteran
 
lightdarkness's Avatar
 
Join Date: Jul 2003
Location: New York
Age: 35
Posts: 11,308
Send a message via AIM to lightdarkness Send a message via MSN to lightdarkness Send a message via Yahoo to lightdarkness Send a message via Skype™ to lightdarkness
Default Re: RE: Re: RE: Ok, what?

Quote:
Originally Posted by soccr743
Quote:
Originally Posted by Chromer
static public void main(String[] args); <--
{
system.out.println ("FFR is teh suck!);
<--

Nah I'm joking. ROFL
You did that wrong btw :P

Code:
public static void main(String[] args)
{
     System.out.println("FFR is teh suck!);
}
You did too...

Code:
public static void main(String[] args)
{
     System.out.println("FFR is teh suck!");
}
__________________
lightdarkness is offline   Reply With Quote
Old 10-30-2005, 02:57 PM   #15
Chromer
Hookers and Blow
Retired StaffFFR Veteran
 
Chromer's Avatar
 
Join Date: Jul 2003
Location: You heard the robot. No fun.
Age: 34
Posts: 4,981
Send a message via AIM to Chromer Send a message via Yahoo to Chromer
Default RE: Re: RE: Re: RE: Ok, what?

ROFL at our Syntax errors.
__________________
Chromer is offline   Reply With Quote
Old 11-3-2005, 09:20 AM   #16
Moogy
嗚呼
FFR Simfile Author
 
Join Date: Aug 2003
Age: 34
Posts: 10,303
Send a message via AIM to Moogy
Default

I stole the disc with Visual Studio 2003 on it from my programming class last year. I am cool.
__________________
Plz visit my blog

^^^ vintage signature from like 2006 preserved
Moogy is offline   Reply With Quote
Old 11-3-2005, 04:26 PM   #17
soccr743
FFR Player
Retired Staff
 
soccr743's Avatar
 
Join Date: Dec 2003
Posts: 549
Send a message via AIM to soccr743 Send a message via MSN to soccr743 Send a message via Yahoo to soccr743
Default

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-----
__________________
soccr743 is offline   Reply With Quote
Old 11-11-2005, 12:01 PM   #18
suicidalmuskrat
FFR Player
 
suicidalmuskrat's Avatar
 
Join Date: Oct 2003
Location: Muskegon
Posts: 739
Send a message via AIM to suicidalmuskrat Send a message via MSN to suicidalmuskrat Send a message via Yahoo to suicidalmuskrat
Default

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.
suicidalmuskrat is offline   Reply With Quote
Old 11-11-2005, 03:00 PM   #19
soccr743
FFR Player
Retired Staff
 
soccr743's Avatar
 
Join Date: Dec 2003
Posts: 549
Send a message via AIM to soccr743 Send a message via MSN to soccr743 Send a message via Yahoo to soccr743
Default

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-----
__________________
soccr743 is offline   Reply With Quote
Old 11-11-2005, 03:05 PM   #20
FoJaR
The Worst
 
FoJaR's Avatar
 
Join Date: Nov 2005
Location: space ghost is dead to me
Posts: 2,816
Send a message via AIM to FoJaR Send a message via MSN to FoJaR
Default

Quote:
Originally Posted by soccr743
Worth every penny for people who are actually serious about programming.

-----Soccr743-----
or lazy
FoJaR is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



All times are GMT -5. The time now is 10:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution