Search:

Type: Posts; User: Lucky Luke

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,447

    I figured out how to get rid of one of the errors...

    I figured out how to get rid of one of the errors by changing my function call to calcMatches.
    I had to change the . operator to -> to access members in the structure.

    But I still get this...
  2. Replies
    4
    Views
    1,447

    put if the function takes in an array of...

    put if the function takes in an array of structure Guesses, such that its prototype would look like this:



    void printBoard(Guess guesses[], int tries, int dim)


    and I'm trying to display...
  3. Replies
    4
    Views
    1,447

    Function and Arrays of Structures

    I'd like to write the following function for my mastermind game, but I'm having problems presenting the mastermind game board like the example shows. My biggest problem is that the function has an...
  4. function that compares exact and inexact matches for two character arrays

    I'm writing a function that compares two different character arrays of 3 to 6 dimensions for exact and inexact matches. It returns the number of exact and inexact matches via output parameters.
    For...
  5. Replies
    1
    Views
    2,100

    Array fills with junk - help

    I'm writing a program that simulates the game mastermind. I'm working on implementing the last function and tweaking the other function before implementing the main game loop. But for some reason my...
  6. Thanks for the fast reply!

    Thanks for the fast reply!
  7. using printf with Array of Structures: format %s expects type char *, but argument 4

    I'm having trouble using printf with an array of structures, I get the following error message when I compile:

    warning: format %s expects type char *, but argument 4 has type int
    warning: too...
Results 1 to 7 of 8