Search:

Type: Posts; User: laserlight

Search: Search took 0.24 seconds.

  1. Replies
    9
    Views
    2,397

    Well, that's great. The array is an array that...

    Well, that's great. The array is an array that "will store the 5 cards for player1". So why are you trying to store chars or strings instead of Card objects (or (smart) pointers to Card objects)?
  2. Replies
    9
    Views
    2,397

    You can't just try giving the array a type, cross...

    You can't just try giving the array a type, cross your fingers, and hope that it works. You need to understand what you are doing.

    Why did you name this array player1? What is this array for? What...
  3. Replies
    9
    Views
    2,397

    player1 is an array of 5 char, therefore...

    player1 is an array of 5 char, therefore player[1] is a char, and a char does not have a toString member function.
Results 1 to 3 of 3