Thread: New error

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    9

    Question New error

    Code:
    int checkspace(int u,int v)
    {
    if ((board[u][v] == 'X') || (board[u][v] == 'O')){ 
        return(1);
        }
    else{
    return(0);
    }
    }
    this is the error

    :\ttt.c: line 136: bad type in function checkspace
    'int checkspace(int u,int v)
    { if ((board[u][v] == 'X') || (board[u][v] == 'O')){
    return(1)
    aborting compile


    please help me

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It hates your indentation, and refuses to put up with it.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM