Thread: expcted dec error

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    4

    expcted dec error

    I keep getting expected declaration error.. but i dont know why, i have included all the ; and () ect.. i cant see anything missin thoudh..

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <assert.h>
    #include <ctype.h>
    
    #ifndef UTILITY_H
    #define UTILITY_H
    
    /* My definition prototypes */
    
    int read_Dictionary(char* vocabFile, VocabPtr vp);
    int checkWord(char* inputData);
    char* lowercase(char* string);
    char* removeNewL(char* inputData);
    int getVocabSize(VocabPtr vp);
    NodePtr getHighestFreqWord(VocabPtr vp);
    int scanFile(char* testFile, VocabPtr vp);
    #endif

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    How does it know what VocabPtr is?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    4
    oh i needed to include another Heade file...

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. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 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