Skip to content

Instantly share code, notes, and snippets.

View rykdesjardins's full-sized avatar
zap

Erik Desjardins rykdesjardins

zap
View GitHub Profile
@rykdesjardins
rykdesjardins / readcommand.cpp
Last active September 15, 2019 03:06
Example of a C++ shell reading from stdin using iostream cin, trimming arguments, with abstract commands
// Used to read commands (works also in a seperate thread) using cin from iostream
using namespace std;
string command;
while (command != "exit")
{
getline(cin, command, '\n');
vector<string> args;