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>
6
using namespace
std
;
7
8
int
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
}
main
int main()
[0]
Definition
doc_src_objecttrees.cpp:5
Qt::endl
QTextStream & endl(QTextStream &stream)
Writes '\n' to the stream and flushes the stream.
Definition
qtextstream.cpp:2837
std
Definition
qfloat16.h:502
qtbase
src
corelib
doc
snippets
qstack
main.cpp
Generated by
1.10.0