Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 131,714 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,398 people online right now. Registration is fast and FREE... Join Now!




Dev C++ - Program Implementation

3 Pages V  1 2 3 >  
Reply to this topicStart new topic

Dev C++ - Program Implementation

programminglearner
post 18 Dec, 2005 - 01:08 PM
Post #1


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


I trying copying and pasting sum snippets and that to see how it works (just downloaded it) but is always says programs not complete or sumthin like dat

plz help
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 18 Dec, 2005 - 01:10 PM
Post #2


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


Post the exact errors

Try this code:

CODE

#include <iostream>
using namespace std;

int main()
{
cout << "Hello World!" << endl;
system("PAUSE");
return 0;
}
User is offlineProfile CardPM

Go to the top of the page

Amadeus
post 18 Dec, 2005 - 01:10 PM
Post #3


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 12,163



Thanked 32 times

Dream Kudos: 25
My Contributions


You'll have to be a little more specific...please post the exact error message, along with the code you have tried to run.

The snippet posted by Mrafcho001 is an excellent test, although I would remove the system("PAUSE") call, as it is platform dependant. I'm not sure what platform you are using, but that call is not acceptable for all of them.
User is offlineProfile CardPM

Go to the top of the page

Amorphous
post 18 Dec, 2005 - 01:11 PM
Post #4


New D.I.C Head

*
Joined: 10 Dec, 2005
Posts: 44



Thanked 1 times
My Contributions


what is the specific error?
are you sure you downloaded and installed the libraries?
are you copying the complete snipplet?
are you just executing the C++ code file instead of a compiled program?
User is offlineProfile CardPM

Go to the top of the page

programminglearner
post 18 Dec, 2005 - 01:13 PM
Post #5


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


OK, i tryed that code, and the error msg is source file not compiled

do u think it could be where i'm enering the code, i said new - source file

should I have done new - project or sumthin?
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 18 Dec, 2005 - 01:15 PM
Post #6


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


You are most likely to have downloaded Dev-C++ withough the libraries. Im not using Dev-C++, and im not sure if you have to create a new project to compile .cpp files.
User is offlineProfile CardPM

Go to the top of the page

programminglearner
post 18 Dec, 2005 - 01:17 PM
Post #7


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


so ur saying a should re-instal Dev-C++ and make sure the libraries are in it?

I don't think I took anything off the instalation list when it showed up
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 18 Dec, 2005 - 01:20 PM
Post #8


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


I just installed Dev-C++ and there was an option to install the libraries i believe.

But the code works just fine on my PC
User is offlineProfile CardPM

Go to the top of the page

programminglearner
post 18 Dec, 2005 - 01:23 PM
Post #9


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


OK, I'm re-installing it now
User is offlineProfile CardPM

Go to the top of the page

programminglearner
post 18 Dec, 2005 - 01:24 PM
Post #10


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


did u say new - source file?
User is offlineProfile CardPM

Go to the top of the page

Mrafcho001
post 18 Dec, 2005 - 01:27 PM
Post #11


D.I.C Addict

Group Icon
Joined: 1 Nov, 2005
Posts: 753



Thanked 5 times

Dream Kudos: 120
My Contributions


QUOTE(programminglearner @ 18 Dec, 2005 - 03:21 PM)
did u say new - source file?

Yes
User is offlineProfile CardPM

Go to the top of the page

programminglearner
post 18 Dec, 2005 - 01:29 PM
Post #12


D.I.C Head

Group Icon
Joined: 18 Dec, 2005
Posts: 86



Dream Kudos: 50
My Contributions


Oh, I did and the error still comes up, and I did install libraries
User is offlineProfile CardPM

Go to the top of the page

3 Pages V  1 2 3 >
Reply to this topicStart new topic
Time is now: 11/20/08 09:45AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month