aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk3
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-28 13:29:38 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-28 13:29:38 -0600
commit48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee (patch)
tree24f4b8383afa09487efdefb7f53c4d449176fe57 /ee1301/wk3
parentChanging namespace (diff)
downloadhomework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar.gz
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar.bz2
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar.lz
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar.xz
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.tar.zst
homework-48b1783a4bf3da1babb8164863c9a7d3ae5bf1ee.zip
Fix standard problem
Diffstat (limited to 'ee1301/wk3')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3A.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}