#include "mainwindow.h"
#include "install.h"
#include <QApplication>
#include <fstream>
int main(int argc, char *argv[])
{
std::ifstream ifile("C:/Program Files/Skittles/Install.cab");
if (ifile.good() == true)
{
MainWindow w;
w.show();
return a.exec();
}
else if (ifile.good() == false)
{
install MyInstall;
MyInstall.exec();
}
return 0;
}
#include "mainwindow.h"
#include "install.h"
#include <QApplication>
#include <fstream>
int main(int argc, char *argv[])
{
std::ifstream ifile("C:/Program Files/Skittles/Install.cab");
if (ifile.good() == true)
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
else if (ifile.good() == false)
{
install MyInstall;
MyInstall.exec();
}
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks