vendredi 20 décembre 2019

Is it possible to make a function in c++ which has stack as data type and returns a stack, how go i do that?

I want to make something like:

stack<int> FunctionName(stack<int>s)
{
     s.pop();
     return s;
}

can I make something like that in c++?

Aucun commentaire:

Enregistrer un commentaire