Originally Posted by
Elysia
[code]
As for your problem is that you're passing by-value. You should know the difference between passing by value and by reference. Do you know this?
I was told that passing strings pass by reference and not value.
and if i change the header to
Code:
void poker (string &card1, string &card2, string &card3, string &card4, string &card5)
I get the following fail.
Code:
Error 1 error LNK2019: unresolved external symbol "void __cdecl poker(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?poker@@YAXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0000@Z) referenced in function _main Poker Lab.obj