From 712a8a14a305966b70da73c1bf5bb30e886af577 Mon Sep 17 00:00:00 2001 From: James Lawrance Date: Sat, 9 Oct 2021 09:57:27 -0700 Subject: 10/9/21 Morning Class Changes --- CST116F2021-Lab2/CST116F2021-Lab2.cpp | 62 ++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) (limited to 'CST116F2021-Lab2/CST116F2021-Lab2.cpp') diff --git a/CST116F2021-Lab2/CST116F2021-Lab2.cpp b/CST116F2021-Lab2/CST116F2021-Lab2.cpp index 93da427..3d14b11 100644 --- a/CST116F2021-Lab2/CST116F2021-Lab2.cpp +++ b/CST116F2021-Lab2/CST116F2021-Lab2.cpp @@ -2,6 +2,7 @@ // #include +#include using namespace std; // int main() @@ -39,4 +40,63 @@ using namespace std; // return 0; - //}; \ No newline at end of file + //}; + +//int main() +//{ +// float temp = 0; + +// cout << "Input temperature: "; +// cin >> temp; +// cout.setf(ios::fixed);; +// cout << setprecision(1) << setw(6) << temp; + + +// return 0; +//}; + +//int main() +//{ +// cout << "Bob"; +// cout.width(10); +// cout << "3.23"; +// cout.width(15); +// cout << "Freshman"; +// cout.width(30); +// cout << "Software Engineering\n"; +// +// cout << "Jamie"; +// cout.width(10); +// cout << "0.98"; +// cout.width(15); +// cout << "Freshman"; +// cout.width(30); +// cout << "Underwater Basket\n"; +// +// cout << "Marcus"; +// cout.width(10); +// cout << "4.00"; +// cout.width(15); +// cout << "Freshman"; +// cout.width(30); +// cout << "Management\n"; +// +// cout << "Phong"; +// cout.width(10); +// cout << "3.75"; +// cout.width(15); +// cout << "Junior"; +// cout.width(30); +// cout << "Encryption\n"; + +// cout << "Webster"; +// cout.width(10); +// cout << "2.00"; +// cout.width(15); +// cout << "Sophomore"; +// cout.width(30); +// cout << "Wildlife Management\n"; + +// return 0; +//} + -- cgit v1.2.3