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, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
July
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
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#17427 - 06/28/04 11: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
Sponsored Links
      
#17428 - 06/29/04 02:43 PM 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 06: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 10: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 01:32 PM 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 03:37 PM 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 09: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/10/04 04:07 AM 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 01:50 PM 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: 08/21/13
Posts: 1
Forum Stats
2145 Members
46 Forums
33129 Topics
68296 Posts

Max Online: 1567 @ 04/25/10 10:20 AM
Top Posters
UGN Security 26292
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Jimmie Menon, fghijk435948, Devo60, ali, lavos
2147 Registered Users
Who's Online
1 registered (Gremelin), 576 Guests and 386 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!