From 48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 28 Feb 2019 13:29:38 -0600 Subject: Fix standard problem --- ee1301/wk3/hw3_directory/strap012_HW3A.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ee1301/wk3/hw3_directory/strap012_HW3A.cpp') diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp index 52b3ce4..6a4ec6c 100644 --- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp +++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp @@ -27,11 +27,11 @@ int main () { winCount+=winTest; } if (w==6) { - std::cout << scientific; + std::cout << std::scientific; } std::cout << "w=" << w << ", d=" << d << ": Simulated probability = m/n = " << (winCount / 1000000.0) * 100.0 << "%. " - << "Theoretical probability = " << (d / (pow(d, w))) * 100 << "%." << endl; + << "Theoretical probability = " << (d / (pow(d, w))) * 100 << "%." << std::endl; d+=2; } } -- cgit v1.2.3