I have a deck of 108 cards inside a 2D array and want to deal these card by 7 to 4 player. Each player had a id. The player and id are stored in a file while i've read in array each. Now I have to...
Type: Posts; User: defjamvan
I have a deck of 108 cards inside a 2D array and want to deal these card by 7 to 4 player. Each player had a id. The player and id are stored in a file while i've read in array each. Now I have to...
I;m not sure.
And the destination in the cout is just a typo. Should be dest.
I haven't learn about std::vector or anything like that yet.
I have a 2D array with 108 strings. How do I shuffle it correctly?
I don't think I'm doing it right
void Shuffle( char dest[208][13] )
{
// Initialize variables
char temp[13];
...
It works! Thanks smokeyangel. I just had to output i+=2. One more thing, If I wanted to only concatenate the first 4 string and leave the last two alone how would i do it?
Result: SeanConnery...
I have a function that concatenate the strings in an array(2D)
Ex 1: Sean Connery Micheal King James Wood
Result: SeanConnery MichealKing JamesWood ...
The concatenation function working correctly...
I'm writing a function that scrambles(shuffles) words(strings) in a 2D array. The problem I'm having is that it is scrambing the characters. Not the actual words. I've used trial and error but I...
char dest[100][2]
char source[5][2][20]
I 'm making my our strcpy function btw.
char dest[108][26]
char source[5][42][13]
I have a 3D array that contains 200 strings. I'm trying to copy all these strings into a 2D array. How can this be done?
This is what I have so far but it isn't working correctly.
for(int i =...