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
Our Sponsors

Latest Postings
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
The Pirate Bay- shut down?
by ZER0_DECEPTION
08/05/08 09:07 PM
Windows Events for Changing Access rights to a folder or a File
by Gizmo
08/05/08 12:32 PM
question about IE and CSS
by §intå×
08/04/08 08:51 PM
Server
by Gizmo
08/01/08 01:29 AM
Miss mash of urban ledgends told so well
by ZER0_DECEPTION
07/28/08 06:35 AM
Topic Options
#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

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



Forum Stats
6911 Members
44 Forums
10414 Topics
45151 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6927
UGN Security 3392
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
byopc, cybermox, NiPah, mcscrwdy25, mobi
6910 Registered Users
Who's Online
0 Registered (), 8 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Aug 20, 2008
by Gizmo
Today at 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM
Update Humpday - Jul 30th, 2008
by Gizmo
07/31/08 11:17 AM
Photo Gallery Update
by Gizmo
07/25/08 05:14 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!