Search:

Type: Posts; User: Beair.GQ

Search: Search took 0.00 seconds.

  1. Thread: functions

    by Beair.GQ
    Replies
    2
    Views
    929

    hi

    sorry to tell u,"max"and "min" are not assign !

    so call that compare function has no meaning!

    may be u need to read max and min from file inp?

    that's all.

    PS:u should tell what's wrong...
  2. Replies
    2
    Views
    1,386

    char board[3][3] =...

    char board[3][3] = {{'1','2','3'},{'4','5','6'},{'7','8','9'}};
    printf("Enter 1 for X and 2 for O: ");
    scanf("%d",&move);

    ///////////////////////
    delete this scanf("%d",&move) ,and it...
  3. try like this: rand = rand()%2 + 1; so...

    try like this:

    rand = rand()%2 + 1;

    so "rand" is in scal [1 2].

    additional, u should redefine the function "void generateBoard(int input)"
    to "int generateBoard(int input)" to return the...
  4. Replies
    4
    Views
    1,346

    Hoho

    try redefine the "word" "static char" to "static unsigned char"!

    u will find the result is what u want!
Results 1 to 4 of 4