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 ...
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 ...
Comment