HEllo :D

Sep 27, 2010 at 3:09am
Code:

#include<iostream>
using namespace std;

int main(void)
{
double dnumber1 = 0.0;
double dnumber2 = 0.0;
double dnumber3 = 0.0;
double daverage = 0.0;

cout << "please enter 3 numbers: " << endl;
cin >> dnumber1;
cin >> dnumber2;
cin >> dnumber3;

daverage = (dnumber1 + dnumber2 + dnumber3) / 3;

cout << "the average of the numbers are: " << daverage << endl << endl;

system("pause");
return 0;

}


Video:
http://www.youtube.com/watch?v=nziy2_U5JQI

Error:
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] [Project1.exe] Error 1
Sep 27, 2010 at 3:24am
Recommendation 1: Switch from Dev-C++. It belongs in a mausoleum.
Recommendation 2: Try starting from an empty project rather than a console project. All sorts of weird stuff goes on with console projects. :)

-Albatross
Last edited on Sep 27, 2010 at 3:25am
Sep 27, 2010 at 9:41pm
Indeed you are using a old IDE try Visual studio 2008/2010 express and start making projects there it might help.
Sep 27, 2010 at 10:18pm
Even better, use Code::Blocks - it's free!
Sep 27, 2010 at 10:19pm
Visual Studio Express is also free. As is NetBeans, to name another good IDE.

-Albatross
Last edited on Sep 27, 2010 at 10:19pm
Sep 29, 2010 at 12:28am
but i here that C++ is the stuff that makes games like CoD4.

And then why did it work for him?
Sep 29, 2010 at 1:06am
The above mentioned IDEs ARE C++...
Sep 29, 2010 at 1:25am
@above:how would it work on C++ i wanna know it all.

i try to open a new project and it says something about required registry is not allowed.

I would seriously prefer to know how to fix it on C++
Last edited on Sep 29, 2010 at 1:33am
Sep 30, 2010 at 9:04pm
why are you all making suggestions? i didn't ask for that.
Sep 30, 2010 at 9:10pm
sailornaruto39 wrote:
why are you all making suggestions? i didn't ask for that.

1. You didn't ask for anything at all.
2. C++ is a language. There are a few IDEs available for C++ programming. The one you're using, which is called Dev-C++, is quite outdated. It hasn't been updated in 5 years, so listen to what people who know better are telling you.
3. Do you really expect to get free help from strangers by being arrogant?
Sep 30, 2010 at 9:46pm
@above:
I wasn't trying to be arrogant.I was just a little frustrated. It is on me for not being speacfic but i thought it was obvious.Iam so sorry for my attitude :(

Iam not really in the mood of caring for if Dev is updated i just wanted to know how to fix it.
But going over it i have the code right.And today i learned that software updates are really important.so my problem maybe due to lack of updates.

And i thank you for letting me know that. And again sorry.

Iam trying ummmm that visual studio and i don't know how to compile on it, and i get that required request is not allowed error.
Topic archived. No new replies allowed.