Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
May
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#17427 - 06/28/04 10:57 AM Problem with C++ install
Joined: Oct 2003
Posts: 209
Red Mage Offline
Member
Red Mage Offline
Member

Joined: Oct 2003
Posts: 209
here.
I've been trying to get C++ to work, but it seems like every version I get doesn't work for the tutorials.. I got DevC++ , but it didn't work right. Oh, I've been trying them with this program:

Code:
#include <iostream.h>
int main()
{
 cout<<"Hello World!";
 return 0;
}
So anyway, I've tried this on DevC++, DJGPP, Borland C++ and they all give me errors. DJGPP can't find the file no matter what I do (even with a full #include , Borland was just being retarded about everything, and Dev worked, but the file didn't run
Any ideas..?


Those who say do not know.
Those who know do not say.
Top
Sponsored Links
#17428 - 06/29/04 01:43 PM Re: Problem with C++ install
Joined: Mar 2002
Posts: 524
dashocker Offline
Member
dashocker Offline
Member

Joined: Mar 2002
Posts: 524
Cornfields everywhere...
Post the error messages...

Top
#17429 - 06/29/04 05:51 PM Re: Problem with C++ install
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
all of those compilers are command line compilers meaning you must read the instructions very carefully!! Most likely you didn't import the Linking file correctly. However as dashocker said please post the error.

Top
#17430 - 07/03/04 09:19 AM Re: Problem with C++ install
Joined: Oct 2003
Posts: 209
Red Mage Offline
Member
Red Mage Offline
Member

Joined: Oct 2003
Posts: 209
here.
The problem was there was no error, the exe just didn't do anything.


Those who say do not know.
Those who know do not say.
Top
#17431 - 07/03/04 12:32 PM Re: Problem with C++ install
Joined: Jan 2003
Posts: 217
Ntd Offline
Member
Ntd Offline
Member

Joined: Jan 2003
Posts: 217
Melbourne, Victoria, Australia
what the.. your code looks fine to me. Did you get a console?

Top
#17432 - 07/03/04 02:37 PM Re: Problem with C++ install
Joined: Mar 2002
Posts: 524
dashocker Offline
Member
dashocker Offline
Member

Joined: Mar 2002
Posts: 524
Cornfields everywhere...
If you're compling and then double clicking the .exe it's because the console is opening and closing so fast you can't see it. Try opening a command prompt and running the .exe from there.

Top
#17433 - 07/05/04 08:49 AM Re: Problem with C++ install
Joined: Oct 2003
Posts: 209
Red Mage Offline
Member
Red Mage Offline
Member

Joined: Oct 2003
Posts: 209
here.
ah


Those who say do not know.
Those who know do not say.
Top
#17434 - 08/10/04 03:07 AM Re: Problem with C++ install
Joined: Aug 2004
Posts: 1
amorak Offline
Junior Member
amorak Offline
Junior Member

Joined: Aug 2004
Posts: 1
Scotland
Code:
#include <iostream.h>
int main()
{
 cout<<"Hello World!";
 return 0;
}
that code wont work in Dev-C++ because you have used iostream.h instead of iostream (no .h) you can also add cin.get(); just before return 0; that will wait for user input before quiting.
Code:
#include <iostream>
using namespace std;

int main()
{
   cout << "Hello world!" << endl;
   cin.get();
   return 0;
}


[color=blue]Information belongs to the world. It should be free for all to use[/color]
Top
#17435 - 08/13/04 12:50 PM Re: Problem with C++ install
Joined: Oct 2003
Posts: 209
Red Mage Offline
Member
Red Mage Offline
Member

Joined: Oct 2003
Posts: 209
here.
You're a genius!!


Those who say do not know.
Those who know do not say.
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics45,556
Posts80,724
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 38,720
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 2 guests and 2 spiders.
Latest News