Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,983 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,357 people online right now. Registration is fast and FREE... Join Now!




error C2447: missing function header

 
Reply to this topicStart new topic

error C2447: missing function header

jazzariah
29 Nov, 2006 - 01:30 PM
Post #1

New D.I.C Head
*

Joined: 8 Nov, 2006
Posts: 10


My Contributions
beginner in c++ i dont understand the error


CODE

#include <iostream>
using namespace std;

int main();

{
    
     int  numberone;
     int numbertwo;
     int numberthree;



    
    cout <<"enter a number";
     cin>> numberone;
     cout<<"enter a other number";
     cin>>numbertwo;
     numberthree = numberone + numbertwo;
     cout<<"the sum is: " << numberthree <<endl;

     numberthree = numberone * numbertwo;

     cout<<"multiplication is:" << numberthree << endl;
     numberthree = numberone - numbertwo;

     cout<< "subtraction is:"<< numberthree<< endl;

     numberthree = numberone / numbertwo;
     cout << "the division is:" << numberthree << endl;

    }


This post has been edited by Dark_Nexus: 29 Nov, 2006 - 02:05 PM
User is offlineProfile CardPM
+Quote Post

BitByte
RE: Error C2447: Missing Function Header
29 Nov, 2006 - 01:51 PM
Post #2

D.I.C Head
**

Joined: 9 Aug, 2006
Posts: 194



Thanked: 3 times
My Contributions
You have a semicolon after your int main().

CODE
int main()
{
    code...

    return 0;
}


This post has been edited by BitByte: 29 Nov, 2006 - 01:54 PM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 07:12PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month