Thread: STL problem

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    STL problem

    Hey everyone, on my C++ program, i get one error, and i have no idea what this is talking about because all my braces are set up correctly in the client program and it gives me the error below. I have posted up my program on the site, but i do not know how this one is suppose to be.
    in my program, what im basically suppose to do is use both a Stack and Queue in it. But with the stack im suppose to use the STL, and when i compile i get one error, the one below the site i have posted here. and it basically just points to the last line in my Client program. I have no idea why it is doing that. Please help. My entire program is right there. so thanx! BTW: to email me, email me at [email protected]

    http://sourcepost.sytes.net/sourcepo...source_id=1872

    and this is my error below:
    C:\StacksnQues\client.cpp(203) : fatal error C1075: end of file found before the left angle-bracket '<' at 'c:\program files\microsoft visual studio\vc98\include\stack(49)' was matched

  2. #2
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    That usually means your missing a '}' somewhere

    --The compiler is still looking for code

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    i tried, and i checked, all my braces are correct, it still gives me that same error though.

  4. #4
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    A space is required between >> for templates -

    template <class T, class Container = deque<T> >

    There may be other problems.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  2. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  3. STL vector <T> problem
    By correlcj in forum C++ Programming
    Replies: 11
    Last Post: 11-06-2002, 07:18 PM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM