בחן את עצמך
 
iostreams, תבניות
 



שאלה 2

האם קוד זה תקין?


template<class T>;
class Stack {
 T *values;
 T *top;
public:
 Stack(int size);
 void Push(T newValue);
 T Pop();
};

void Stack::Push(T newValue)
{
 top++;
 *top = newValue;
}
 
 
הקוד תקין
הקוד אינו תקין