CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    41

    error: parse error before "struct"

    Hi i have this error in my program relating to the line
    Code:
    	itemcount(struct list *robotcommand);
    could someone tell me what the possable error is with this or what else.

  2. #2
    Join Date
    Oct 2002
    Location
    Singapore
    Posts
    3,128

    Re: error: parse error before "struct"

    If it is supposed to be a function declaration, you need to have a return type.
    Code:
    void itemcount(struct list *robotcommand);
    However, if you are trying to call the function itemcount, there is no need to specify the datatype.
    Code:
    itemcount(robotcommand);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured