I have 'main.cpp':
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
hello.resize(100, 30);
hello.show();
return app.exec();
}
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
How can I compile it ?
c++ -o prog main.cpp
c++ -o prog main.cpp
To copy to clipboard, switch view to plain text mode
doesn't work
Bookmarks