partitionist
Erfahrenes Mitglied
SO ich hab alles ausprobiert, komme aber nicht dahinter, also meine Frage: Was muss ich verändern, dass wenn ich Enter drücke die Pfeile wieder auftauchen und keine leere Zeile.
Code:
#include <string>
#include <iostream>
#include <stdlib.h>
#define EXIT "exit"
using namespace std;
void Pfeil()
{
cout << ">> ";
}
int main()
{
string Input;
do
{
Pfeil();
cin >> Input;
if(Input == "test")
{
cout << "TEST" << endl << endl;
}
else if(Input == LEERE EINGABE)
{
Pfeil();
}
........
}while(Input != EXIT);
return 0;
}