diff options
| author | DoolyBoi <[email protected]> | 2022-09-29 15:00:41 -0700 |
|---|---|---|
| committer | DoolyBoi <[email protected]> | 2022-09-29 15:00:41 -0700 |
| commit | ea97e938682dd52f82c5d7677ee42272187df88b (patch) | |
| tree | 676d80208f26024ae78f6b6a86360661ba3bbb11 | |
| parent | renamed lab and added names (diff) | |
| download | cst116-lab0-abd00l4h-ea97e938682dd52f82c5d7677ee42272187df88b.tar.xz cst116-lab0-abd00l4h-ea97e938682dd52f82c5d7677ee42272187df88b.zip | |
added using statement and reaplaced the unessicary std statement in the print function
| -rw-r--r-- | CST116-BlankConsole/CST116-BlankConsole.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CST116-BlankConsole/CST116-BlankConsole.cpp b/CST116-BlankConsole/CST116-BlankConsole.cpp index 55d3417..a10244f 100644 --- a/CST116-BlankConsole/CST116-BlankConsole.cpp +++ b/CST116-BlankConsole/CST116-BlankConsole.cpp @@ -9,9 +9,12 @@ Debugging #include <iostream>
+using std::cout;
+using std::endl;
+
int main()
{
- std::cout << "Hello World!\n";
+ cout << "Hello World!" << endl;
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
|