The empty "" for both arrays is unnecessary.
You can avoid it by using:
cout << "Card: " << cardvalue[i-1] << cardsuit[j-1] << endl; // just so there's no confusion, do not change anything...
Type: Posts; User: Moreander
The empty "" for both arrays is unnecessary.
You can avoid it by using:
cout << "Card: " << cardvalue[i-1] << cardsuit[j-1] << endl; // just so there's no confusion, do not change anything...
There are several other problems with this code besides not giving you random cards.
Maybe you are aware of these issues and they're just caused by carelessness (doing things too quickly or...