Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include <QtGui>
5#include <iostream>
6using namespace std;
7
8int main(int argc, char *argv[])
9{
11 QStack<int> stack;
12 stack.push(1);
13 stack.push(2);
14 stack.push(3);
15 while (!stack.isEmpty())
16 cout << stack.pop() << Qt::endl;
18}
int main()
[0]
QTextStream & endl(QTextStream &stream)
Writes '\n' to the stream and flushes the stream.