This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
同じクラス内にあるクラスのオブジェクトを作成できますか? そうでない場合、どうすればよいですか?
スタッククラスの例
template <class T>
class stack
{
void push(T d)
{
...
}
T pop()
{
...
}
//my question is about this one
void sort()
{
// I get errors when I do that ?
stack st;
st.push(4);
}
};