Hier stimmt aber was nicht....
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
string antwort1, zufallname, wert, buttongedrueckt, gotovy, name, lol, vorname;
cout << "Hi" << endl;
cout << "" << endl;
cout << "Sollen wir Anfangen?" << endl;
getline ( cin, gotovy );
cout << "" << endl;
while(1)
{
cout << "Name:" << endl;
getline ( cin, vorname );
cout << "Nachname:" << endl;
getline ( cin, name );
cout << "" << endl;
if buttongedrueckt = True
wert = rnd(10)
endif
select wert
case 1
zufallname$ = "Dragoon-Fighter"
case 2
zufallname$ = "Schlumpf"
default
zufallname$ = "KA"
endselect
cout << vorname << zufallname << endl;
cout << "Noma? (j/n)" << endl;
getline ( cin, antwort1 );
if ( antwort1 == "j" )
{
continue;//zanovo
}
else
{
break; //stop
}
cout << "Ende" << endl;
}
cout << "Bye" << endl;
system("PAUSE");
return EXIT_SUCCESS;
}