new college student in need of help ...doing some programming on my own and just starting to learn.
I am really new to the programming world.
Forgive me for my ignorance
I have DEV-C++ compiler...I was following a tutorial and i'm having some problems compiling and running a program can you help me .
when i hit compile and run these three message come up and some one explain and help me correct my problem.
avergae.cpp C:\Dev-Cpp\avergae.o(.text+0x50) multiple definition of `main'
averge.cpp C:\Dev-Cpp\averge.o(.text+0x6) first defined here
C:\Dev-Cpp\Makefile.win[Build Error] ["hello] Error 1
those are the message that come up with no line number and here is my code
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;
}
am i doing something wrong can someone help me ...
my email is <<snipped>> thanks everyone in advance for help