diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-01 12:18:00 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-01 12:18:00 -0700 |
| commit | 1cc1df9b5498ae1c7e075a69f66c6cbfc7b3261b (patch) | |
| tree | 584bb892eef9e217efa6ca5b04080f44fdeeb809 | |
| parent | Chand std::cout to cout (diff) | |
| download | cst116-lab0-cyrus-1cc1df9b5498ae1c7e075a69f66c6cbfc7b3261b.tar.xz cst116-lab0-cyrus-1cc1df9b5498ae1c7e075a69f66c6cbfc7b3261b.zip | |
replace \n with endl
| -rw-r--r-- | CST116-BlankConsole/CST116-BlankConsole.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CST116-BlankConsole/CST116-BlankConsole.cpp b/CST116-BlankConsole/CST116-BlankConsole.cpp index 23b6c87..75218a4 100644 --- a/CST116-BlankConsole/CST116-BlankConsole.cpp +++ b/CST116-BlankConsole/CST116-BlankConsole.cpp @@ -7,10 +7,12 @@ using std::cout;
using std::cin;
+using std::endl;
+
int main()
{
- cout << "Hello World!\n";
+ cout << "Hello World!" << endl;
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
|