#include #include using namespace std;int main(int argc, char *argv[]){ QStack stack; stack.push(1); stack.push(2); stack.push(3); while (!stack.isEmpty()) cout << stack.pop() << endl;}