Results 1 to 4 of 4

Thread: Simple linked queue error

  1. #1

    Thread Starter
    Addicted Member nad_scorp's Avatar
    Join Date
    Feb 2001
    Location
    Inside XML
    Posts
    242

    Simple linked queue error

    I've this code for school and I keep getting these 2 errors:

    error C2146: syntax error : missing ';' before identifier 'node_entry'

    fatal error C1004: unexpected end of file found


    Plz help , it's URGENT

    thanx in advance

    here are the .h & .cpp :
    Attached Files Attached Files
    Me "Talented Idiot" by Gtarawneh "He said he's sorry

    Inconsequential is Incommunicable

    The first impression we have
    Is not always the real one
    My reality is not always your
    so my friend....Is life that simple?


    It is called "Israeli occupation forces"

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    typedef char Queue_entry node_entry ;
    You're missing a comma after Queue_entry. But be aware that this won't solve all your problems, the next compile resulted in 102 errors! Most of them seem to be references to the identifier Node which you don't declare in time, and places where you used spaces instead of underscores.

    And you should use <iostream> instead of <iostream.h>. Then use the namespace "std" and you'll be fine.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member nad_scorp's Avatar
    Join Date
    Feb 2001
    Location
    Inside XML
    Posts
    242
    Thanx I've done that but HOW TO INCLUDE THE STD

    BTW. I forget to attach the node.h file but here it is in case needed
    Attached Files Attached Files
    • File Type: h node.h (294 Bytes, 56 views)
    Me "Talented Idiot" by Gtarawneh "He said he's sorry

    Inconsequential is Incommunicable

    The first impression we have
    Is not always the real one
    My reality is not always your
    so my friend....Is life that simple?


    It is called "Israeli occupation forces"

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    under the include statements use:

    using namespace std;
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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