Passing my cards to my function

So i have this program that asks the user to enter in 5 guesses for a deck of 18 cards. After guessing them, I have to display both the user guesses, and the seeded generated computers cards. I almooost have the code down... but I can't get it quiet right. Any suggestions?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  void DisplayCards (int *user, int *generatedCards)
    	{
    		
    		
    		
    		 cout << "Users Guess" << "\t\t\t" << "Generated Cards" << endl;

    for (int i = 0; i < 5; ++i) {
        // Get the names of the choices from the deck
        std::string UserChoice = (*(CARDS));
       std::string GeneratedCard = *CARDS;

        // print the names side by side
        cout << UserChoice<< "\t\t\t" <<GeneratedCard<< endl;
    }
    		



This is my global for my cards:

1
2
3
4
std::string  CARDS[19]={"nothing","red circle","red square","red triangle","blue circle","blue square",
	 "blue triangle","yellow circle","yellow square","yellow triangle","orange circle",
	 "orange square" ,"orange triangle","purple circle","purple square",
     "purple triangle","green circle","green square","green triangle"};
Topic archived. No new replies allowed.