Skip to content

Commit

Permalink
You no longer have to press Enter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-FZ committed Apr 14, 2023
1 parent d8009ee commit 470c90d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NShell Changelog

## Build 4

- You no longer have to press Enter to exit the application.

## Build 3

- Okay, now version and exit do something.
Expand Down
5 changes: 5 additions & 0 deletions NShell.depend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# depslib dependency file v1.0
1681378820 source:d:\nicos code\shell\nshell\nshell\main.cpp
<iostream>
<limits>

4 changes: 2 additions & 2 deletions NShell.layout
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Debug" />
<ActiveTarget name="Release" />
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="95" topLine="0" />
<Cursor1 position="58" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>
8 changes: 1 addition & 7 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <iostream>
#include <limits>

int buildNr = 3;
int buildNr = 4;

int main()
{
Expand All @@ -19,7 +18,6 @@ int main()
}

else if (command_to_run == "exit") {
std::cout << "Goodbye. Please press Enter to exit the application." << '\n';
break;
}

Expand All @@ -28,9 +26,5 @@ int main()
}
}

std::cin.clear();
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
std::cin.get();

return 0;
}

0 comments on commit 470c90d

Please sign in to comment.