diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-01 12:12:54 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-01 12:12:54 -0700 |
| commit | 0c8cc14c2506e5cceab44bb2cb15f2e64a280466 (patch) | |
| tree | f0033f1b67b27da3d5f3d086594a0f04ddd97a51 | |
| parent | Add “using” statements before the main() function for std::cout and std::... (diff) | |
| download | cst116-lab0-cyrus-0c8cc14c2506e5cceab44bb2cb15f2e64a280466.tar.xz cst116-lab0-cyrus-0c8cc14c2506e5cceab44bb2cb15f2e64a280466.zip | |
Chand std::cout to cout
| -rw-r--r-- | CST116-BlankConsole/CST116-BlankConsole.cpp | 3 |
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
|