1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
switch (PLAYERS)
{
case 2:
{
vector<int> playerOneHand(6,1);
vector<int> playerTwoHand(6,1);
dealHands(deck, playerOneHand, playerTwoHand, PLAYERS);
}
case 3:
{
vector<int> playerOneHand(6,1);
vector<int> playerTwoHand(6,1);
vector<int> playerThreeHand(6,1);
dealHands(deck, playerOneHand, playerTwoHand, playerThreeHand, PLAYERS);
}
case 4:
{
vector<int> playerOneHand(6,1);
vector<int> playerTwoHand(6,1);
vector<int> playerThreeHand(6,1);
vector<int> playerFourHand(6,1);
dealHands(deck, playerOneHand, playerTwoHand, playerThreeHand, playerFourHand, PLAYERS);
}
default:
{
vector<int> playerOneHand(6,1);
dealHands(deck, playerOneHand, PLAYERS);
}
}// end switch
}
void dealHands(int deck[],vector<int> &playerOneHand, vector<int> &playerTwoHand, vector<int> &playerThreeHand, vector<int> &playerFourHand, const int PLAYERS)
{
}
1>palaceGame.obj : error LNK2019: unresolved external symbol "void __cdecl dealHands
(int * const,class std::vector<int,class std::allocator<int> >,int)"
(?dealHands@@YAXQAHV?$vector@HV?$allocator@H@std@@@std@@H@Z) referenced in function "void __cdecl playGame(int * const,int)"
(?playGame@@YAXQAHH@Z)
1>palaceGame.obj : error LNK2019: unresolved external symbol "void __cdecl
dealHands(int * const,class std::vector<int,class std::allocator<int> >,class
std::vector<int,class std::allocator<int> >,class std::vector<int,class
std::allocator<int> >,class std::vector<int,class std::allocator<int> >,int)"
(?dealHands@@YAXQAHV?$vector@HV?$allocator@H@std@@@std@@111H@Z)
referenced in function "void __cdecl playGame(int * const,int)" (?
playGame@@YAXQAHH@Z)
1>palaceGame.obj : error LNK2019: unresolved external symbol "void __cdecl
dealHands(int * const,class std::vector<int,class std::allocator<int> >,class
std::vector<int,class std::allocator<int> >,class std::vector<int,class
std::allocator<int> >,int)" (?dealHands@@YAXQAHV?$vector@HV?
$allocator@H@std@@@std@@11H@Z) referenced in function "void __cdecl
playGame(int * const,int)" (?playGame@@YAXQAHH@Z)
1>palaceGame.obj : error LNK2019: unresolved external symbol "void __cdecl
dealHands(int * const,class std::vector<int,class std::allocator<int> >,class
std::vector<int,class std::allocator<int> >,int)" (?dealHands@@YAXQAHV?
$vector@HV?$allocator@H@std@@@std@@1H@Z) referenced in function "void
__cdecl playGame(int * const,int)" (?playGame@@YAXQAHH@Z)
1>C:\Users\Craig\Documents\C++\Palace\Debug\palace.exe : fatal error
LNK1120: 4 unresolved externals
1>
|