UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
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
Our Sponsors


Latest Postings
My friend NEEDS your HELP!
by Gizmo
11/26/08 12:21 AM
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Topic Options
Rate This Topic
#17427 - 06/28/04 06:57 AM Problem with C++ install
Red Mage Offline
Member

Registered: 10/24/03
Posts: 209
Loc: 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
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#17428 - 06/29/04 09:43 AM Re: Problem with C++ install
dashocker Offline
Member

Registered: 03/05/02
Posts: 524
Loc: Cornfields everywhere...
Post the error messages...

Top
#17429 - 06/29/04 01:51 PM Re: Problem with C++ install
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: 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 05:19 AM Re: Problem with C++ install
Red Mage Offline
Member

Registered: 10/24/03
Posts: 209
Loc: 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 08:32 AM Re: Problem with C++ install
Ntd Offline
Member

Registered: 01/21/03
Posts: 217
Loc: Melbourne, Victoria, Australia
what the.. your code looks fine to me. Did you get a console?

Top
#17432 - 07/03/04 10:37 AM Re: Problem with C++ install
dashocker Offline
Member

Registered: 03/05/02
Posts: 524
Loc: 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 04:49 AM Re: Problem with C++ install
Red Mage Offline
Member

Registered: 10/24/03
Posts: 209
Loc: here.
ah
_________________________
Those who say do not know.
Those who know do not say.

Top
#17434 - 08/09/04 11:07 PM Re: Problem with C++ install
amorak Offline
Junior Member

Registered: 08/09/04
Posts: 1
Loc: 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 08:50 AM Re: Problem with C++ install
Red Mage Offline
Member

Registered: 10/24/03
Posts: 209
Loc: here.
You're a genius!!
_________________________
Those who say do not know.
Those who know do not say.

Top



Featured Member
Registered: 03/03/02
Posts: 23
Forum Stats
6889 Members
44 Forums
11030 Topics
45809 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6958
UGN Security 4080
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
lucky vin, prEttyNDistress, AndrewKlilly, border, f4k3m3
6889 Registered Users
Who's Online
0 registered (), 6 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 26, 2008
by Gizmo
11/28/08 03:39 AM
Happy Holidays!
by Gizmo
11/27/08 09:09 AM
New Mailing
by Gizmo
11/24/08 01:30 PM
A special update...
by Gizmo
11/24/08 01:10 PM
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!