From 154939111d4862b6cc00342a8f01763e214d7f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Skaaden?= Date: Thu, 7 Feb 2019 12:11:51 +0100 Subject: [PATCH] =?UTF-8?q?Update=20=C3=B8ving=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ObligatoriskeOppgaver/cannonball.cpp | 2 +- .../ObligatoriskeOppgaver/ObligatoriskeOppgaver/main.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/cannonball.cpp b/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/cannonball.cpp index 8aa2d28..164e823 100644 --- a/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/cannonball.cpp +++ b/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/cannonball.cpp @@ -52,7 +52,7 @@ void getUserInput(double& theta, double& absVelocity) double degToRad(double deg) { - return deg * M_PI / 180; + return deg * M_PI / 180; } double getVelocityX(double theta, double absVelocity) diff --git a/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/main.cpp b/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/main.cpp index bec507a..72c1d92 100644 --- a/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/main.cpp +++ b/Oving 3/ObligatoriskeOppgaver/ObligatoriskeOppgaver/main.cpp @@ -30,7 +30,11 @@ int main(){ #pragma region Game - Task 5d - playTargetPractice(10); + int rounds = 10; + + playTargetPractice(rounds); + + #pragma endregion