Syntax Errors and Formatting

Hi All
I need some help with this code. I need to fix some syntax errors and am having trouble. Here is the code i started out with:


#include <iostream>

using namespace std;

main ( )
{
int usersChoice = menu();
cout << "\n You Choose " << userdChoice;

return 0;
} //end main

int menu(void){
//displays a menu and returns
//the integer value of the item
//selected by the user

cout >> "Choose From Martha's Menu:/n"
cout << "1 - Dinner"
cout << endln << 2 - Lunch";
cout << endln << "3 - Breakfeast";
cout << "Enter a number:"
int choice = 0;
cin << Choice

return choice;

} //end menu



Here is one of my attempts at making it work:

#include <stdafx.h>
#include <io.h>
#include <iostream.>
using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
int usersChoice = 0;

cout << "You Choose:"<<endl;
cin >> usersChoice;

} //end main

int menu(void)
{
//displays a menu and returns
//the integer value of the item
//selected by the user

cout << "Choose From Martha's Menu: " << menu << endl
<< "1 - Dinner/n"
<< "2 - Lunch/n"
<< "3 - Breakfeast/n";

cout << "Enter a number:";
int menu;
cin >> menu;
return 0;
}//end menu


It still fails any suggestions would be great! Thank you in advance.
I have figured out all the syntax errors except for one. Here is the code i have:
#include <iostream>

using namespace std;

main ( )
{
int usersChoice = 0;
cout << "\n You Choose " << usersChoice;

return 0;
} //end main

int menu(void)
{
//displays a menu and returns
//the integer value of the item
//selected by the user

cout << "Choose From Martha's Menu:/n" << endl;
cout << "1 - Dinner" << endl;
cout << "2 - Lunch" << endl;
cout << "3 - Breakfeast" << endl;
cout << "Enter a number:";
int choice = 0;
cin >> choice;

return choice;

} //end menu

The error that i keep getting is

(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int.

What does this mean???
Help
int main
Topic archived. No new replies allowed.