Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#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.
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...

#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.

#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.
#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?

Sponsored Links
#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.

#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.
#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]
#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.

Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics47,469
Posts82,639
Average Daily Posts8
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 40,633
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
No Data Found
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)