All pastes #491976 Raw Edit

Something

public cpp v1 · immutable
·published 2007-05-16 23:09 UTC
rendered paste body
#include <iostream>#include <QApplication>#include <QPushButton>using namespace std;int correcto(int argc, char *argv[]){	QApplication app(argc, argv);	QPushButton hello("YES!");	hello.resize(100, 30);	hello.show();	return app.exec();}int incorrecto(int argc, char *argv[]){	QApplication app(argc, argv);	QPushButton hello("NO!");	hello.resize(100, 30);	hello.show();	return app.exec();}int main(int argc, char *argv[]) {	do {		string y = "uops";		cout << "Respondeme yes: " << endl;		cin >> y;		if (y == "yes") {			correcto(argc, argv);		}		else {			incorrecto(argc, argv);		}	}	while (y != "quit");	return 0;}