Search:

Type: Posts; User: defjamvan

Search: Search took 0.00 seconds.

  1. Dealing a deck of cads using structs? Uno style

    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...
  2. Replies
    6
    Views
    1,262

    I;m not sure. And the destination in the cout is...

    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.
  3. Replies
    6
    Views
    1,262

    What wrong with this shuffle function?

    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];

    ...
  4. It works! Thanks smokeyangel. I just had to...

    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...
  5. Concatenating function not working right?

    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...
  6. Replies
    2
    Views
    1,360

    Scrambling words in an array?

    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...
  7. char dest[100][2] char source[5][2][20] I...

    char dest[100][2]
    char source[5][2][20]


    I 'm making my our strcpy function btw.
  8. char dest[108][26] char source[5][42][13]

    char dest[108][26]
    char source[5][42][13]
  9. How can I copy a 3 dimensional array into a 2 dimensional array?

    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 =...
Results 1 to 9 of 9