Skip to content

Commit 1a01b2c

Browse files
committed
Now you can type something in.
1 parent 197e79c commit 1a01b2c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# NShell Changelog
22

3+
## Build 2
4+
5+
- Now you can type something in, but then it just says goodbye.
6+
37
## Build 1
48

59
- Added build information

main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
#include <array>
21
#include <iostream>
32
#include <limits>
4-
#include <span>
53

6-
int buildNr = 1;
4+
int buildNr = 2;
75

86
int main()
97
{
108
std::cout << "NShell" << '\n';
119
std::cout << "Build: " << buildNr << '\n';
1210
std::cout << "Early prototype! Don't expect it to be useful." << '\n';
1311

12+
std::cout << "NShell > ";
13+
std::string command_to_run;
14+
std::cin >> command_to_run;
15+
16+
std::cout << "You would have run " << command_to_run << ". Thanks for testing. Goodbye.";
17+
1418
std::cin.clear();
1519
std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
1620
std::cin.get();

0 commit comments

Comments
 (0)