pls urgent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anushhprabu
    New Member
    • Sep 2006
    • 43

    #1

    pls urgent

    guys , pls tell me the procedure or send me a snippet to return a STL stack from a function..


    my function should return a stack as return value...

    stack infix_Postfix (string Expr)
    {
    stack res;
    xxxxxxxxxx ;
    xxxxxxxxxx ;
    return res;
    }

    this code is generating error...

    error C2553: no legal conversion of return value to return type 'class std::stack *'
    Error executing cl.exe. pls..soon ...
    Last edited by anushhprabu; Oct 16 '06, 10:54 AM. Reason: to alter
  • anushhprabu
    New Member
    • Sep 2006
    • 43

    #2
    guys pls..

    Comment

    Working...