Browse Source

implement lesson02

lesson02
Constantin Fürst 8 months ago
parent
commit
b143a9a119
  1. 16
      main.cpp

16
main.cpp

@ -3,6 +3,7 @@
#include <chrono>
#include "components/Point.h"
#include "components/Snack.h"
#include "input-output/Graphics.h"
void mainL01() {
@ -17,7 +18,20 @@ void mainL01() {
std::cout << "Helper QUIT" << std::endl;
}
void mainL02() {
Graphics::get().init("Learners Helper 02");
Point p(10,10);
generateSnack(&p);
std::this_thread::sleep_for(std::chrono::seconds(10));
Graphics::get().finalize();
std::cout << "Helper QUIT" << std::endl;
}
int main() {
mainL01();
mainL02();
return 0;
}
Loading…
Cancel
Save