Nick
2015-04-19 13:59:50 UTC
#include
using namespace std;
int main()
{
char selectPlayer[6] {'Zach Parise', 'Jason Pomminville', 'Thomas Vanek', 'Mikko Koivu', 'Nino Niederreiter', '\0'};
void intro();
intro ();
void who();
who ();
cin >> selectPlayer;
void what(char);
what (selectPlayer);
}
void intro ()
{
cout << "Hello, welcome to the Minnesota Wild Stat Generator!" << endl;
cout << "You can learn stats about 5 top players during the " << endl;
cout << "2014-2015 regular season!" << endl;
}
void who ()
{
cout << "Who would you like to learn about?" << endl;
cout << "Press 0 for Zach Parise" << endl;
cout << "Press 1 for Jason Pomminville" << endl;
cout << "Press 2 for Thomas Vanek" << endl;
cout << "Press 3 for Mikko Koivu" << endl;
cout << "Press 4 for Nino Niederreiter" << endl;
}
void what (char selectPlayer)
{
cout << "What statistic would you like to learn about " + selectPlayer;
}
and here are the errors:
http://gyazo.com/6a6b36488a257bb55dfa72f81eb18ccd
please help! thanks :D
oh and line 14 is:
void what(char);
line 15:
what (selectPlayer);
thanks