24 lines
503 B
C++
24 lines
503 B
C++
|
|
//#include <QApplication>
|
|||
|
|
#include <QtCore>
|
|||
|
|
//#include "./line_loss.h"
|
|||
|
|
#include "mainfun.cpp"
|
|||
|
|
#include <iostream>
|
|||
|
|
int callmain(char * args)
|
|||
|
|
{
|
|||
|
|
//QApplication a(argn,args);
|
|||
|
|
//line_loss w(0);
|
|||
|
|
//w.show();
|
|||
|
|
//std::cout<<argn<<" parameters."<<std::endl;
|
|||
|
|
// if(!QFile::exists(args[1]))
|
|||
|
|
// {
|
|||
|
|
// std::cout<<args[1]<<" not exist."<<std::endl;
|
|||
|
|
// return -1;
|
|||
|
|
// }
|
|||
|
|
//std::cout<<"parseing "<<args[1]<<std::endl;
|
|||
|
|
mainfun(args);
|
|||
|
|
//return a.exec();
|
|||
|
|
return 0;
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|