Kann mir jemand bitte helfen?
-
Ich habe gerade eben was ausgelassen:
[cpp]
//-----------------------------------------------------------------------------
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
string Antwort;
//-----------------------------------------------------------------------------
void main (void)
{
cin >> Antwort;
cout << "Bist du homosexuell? Yes/No" <<endl;
getch ();
if (Antwort == "yes")
{
cout << "Falsche Antwort Kleiner!" <<endl;
getch ();
}if (Antwort == "no")
{
cout << "Das ist gut, denn wenn anders... he he he." <<endl;
getch ();
}
}
//-----------------------------------------------------------------------------