Beispiel #1
0
//execute the algorithm and continue the program
void MainWindow::algorithm(){

	try{
        ServerConnection server("http://vanriel.eu/devcare/dummy.php");

        auto v = parsejson(server.httpGet());

		vaste_nodes no;
		no.a = v.second[0];
		no.b = v.second[1];
		no.c = v.second[2];

		out = alg.bereken(no, v.first);

        kamer.setError(false);
	}
	catch(const std::runtime_error e){
		cerr<<"exception: "<<e.what()<<endl;
        kamer.setError(true);
	}


	fillbox();
	fillpic();
}
Beispiel #2
0
static void reset_fill(void)
{
   fillbox(15, 0, 0, 0, 0);
}