rendered paste body#include <iostream>#include <string>int main(){std::string data; //string data = inputunsigned int loc;std::string command; //darin wird das komando gespeichertwhile(1){ startwhile: std::cout << ">"; getline(std::cin, data); // input if (data.empty()) // falls leer { std::cout <<"kein Komando eingegeben\n"; goto startwhile; } loc = data.find( " ", 0); //erstes leerzeichen finden command = data.substr(0, loc); //komando kopieren if ( command == "test") //komando-case { std::cout << "Komando Test eingegeben\n"; } else if ( command == "help" ) { std::cout << "Komando Help eingegeben\nIm Moment implementiere Komandos: help, test, quit\n"; } else if ( command == "quit" ) break; else std::cout << "Komando nicht erkannt\n"; // falls nichts passt}}