i made this program to have the user choose from a menu what they want to do then enter information about a baseball card and view the data if they want but it doesnt work right and I cant figure out whats wrong
#include <iostream.h>
struct BaseballType
{
string name;
string name2;
int year;
string company;
int number;
double price;
};
int Entry(BaseballType baseball);
void Display(BaseballType baseball);
int main()
{
int choice;
BaseballType baseball;
cout<<"Press the number of you choice"<<endl;
cout<<"1) Enter card information"<<endl;
cout<<"2)Print card data"<<endl;
cout<<"3)Exit program"<<endl;
cin>>choice;
if(choice==1)
Entry(BaseballType &baseball);
else if(choice==2)
void Display(BaseballType baseball);
else
cout<<"End of Program";
}
int Entry(BaseballType &baseball)
{
cout<<"Enter player name"<<endl;
cin>>baseball.name>>baseball.name2;
cout<<"Enter year of card"<<endl;
cin>>baseball.year;
cout<<"Enter company"<<endl;
cin>>baseball.company;
cout<<"Enter the card number"<<endl;
cin>>baseball.number;
cout<<"Enter the price of the card"<<endl;
cout<<"$";
cin>>baseball.price;
}
void Display(BaseballType baseball)
{
cout<<baseball.name<<" "<<baseball.name2<<endl;
cout<<baseball.year<<endl;
cout<<baseball.company<<endl;
cout<<baseball.number<<endl;
cout<<baseball.price<<endl;
}