C++ (Qt)int main(int , char* argv[], char** ){ QString str( argv[ 0]); printf( "%s is very simple programm!\n", str.toAscii().data()); printf("Quit.\n"); return 0;}
C++ (Qt)#include <QtCore/QCoreApplication>#include <QtCore/QTimer> int main(int argc, char* argv[], char** ){ QCoreApplication app( argc, argv); qWarning( "%s is very simple programm!", argv[ 0]); QTimer timer; QObject::connect( &timer, SIGNAL(timeout()), &app, SLOT( quit())); timer.start( 3000); int res = app.exec(); qWarning("Quit."); return res;}