aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-01 12:12:54 -0700
committerMorgan Cyrus <[email protected]>2022-10-01 12:12:54 -0700
commit0c8cc14c2506e5cceab44bb2cb15f2e64a280466 (patch)
treef0033f1b67b27da3d5f3d086594a0f04ddd97a51
parentAdd “using” statements before the main() function for std::cout and std::... (diff)
downloadcst116-lab0-cyrus-0c8cc14c2506e5cceab44bb2cb15f2e64a280466.tar.xz
cst116-lab0-cyrus-0c8cc14c2506e5cceab44bb2cb15f2e64a280466.zip
Chand std::cout to cout
-rw-r--r--CST116-BlankConsole/CST116-BlankConsole.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/CST116-BlankConsole/CST116-BlankConsole.cpp b/CST116-BlankConsole/CST116-BlankConsole.cpp
index 4299da2..23b6c87 100644
--- a/CST116-BlankConsole/CST116-BlankConsole.cpp
+++ b/CST116-BlankConsole/CST116-BlankConsole.cpp
@@ -4,12 +4,13 @@
#include <iostream>
+
using std::cout;
using std::cin;
int main()
{
- std::cout << "Hello World!\n";
+ cout << "Hello World!\n";
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu