From 3686258d2fa6fdffebb57f7d530952fd4dabf366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 21 Sep 2020 16:13:25 +0200 Subject: Given files L4 --- labb4/robotsmain.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 labb4/robotsmain.cpp (limited to 'labb4/robotsmain.cpp') diff --git a/labb4/robotsmain.cpp b/labb4/robotsmain.cpp new file mode 100644 index 0000000..64eb176 --- /dev/null +++ b/labb4/robotsmain.cpp @@ -0,0 +1,21 @@ +/** + * TDDD86 Robots + * This client program contains the 'main' function to set up the overall + * program's graphical user interface. + * Your code should work properly with an unmodified version of this file. + */ + +#include +#include "mainwindow.h" +#include "utilities.h" + +int main(int argc, char *argv[]) { + QApplication a(argc, argv); + + rand_seed(); // seed random number generator + + MainWindow view; // create main window + view.show(); // display main window + + return a.exec(); // start Qt event loop +} -- cgit v1.2.1