XtaiN
Lt. Junior Grade
- Registriert
- Dez. 2008
- Beiträge
- 340
Hallo,
ich habe heute angefangen mich mit c++ auseinanderzusetzen und eine paar Programme erfolgreich geschrieben.
Ich habe unteranderem ein Vokabel lern programm geschrieben, doch da ist ein Fehler:
expected declaration before '}' token.
hier ist das programm:
#include <cstdlib>
#include <iostream>
#include <string>
#include <conio.h>
#include <windows.h>
#include <wincon.h>
using namespace std;
int main()
{
string Name, eat, aussage, one, two, three, run;
system ( "color 50");
system ( "color 00");
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " Herzlich Willkommen zu meinem VOKABELLERNPORGRAMM "<<endl;
cout << " Welcome to my VOCABULARY LEARNING PROGRAM"<<endl;
Sleep (2000);
cout <<" Bitte gib deinen Namen ein " << endl;
cout <<" Please write your name down" << endl;
cin>> Name;
cout << " " << endl;
cout << " Dann zeig mal was du kannst" << " " << Name << endl;
Sleep (2000);
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout <<" Unit 1" << endl;
cout << " Uebersetze ins Deutsche" << endl;
cout << " Schreibe alles klein und ohne Umlaute" << endl;
Sleep(2500);
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
{
cout << " crime" << endl;
cin>> one;
if ( ( one == "verbrechen " || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
else
{
cout << " Versuchs nochmal!!!" << endl;
cout << " crime" << endl;
cin >> one;
if ( ( one == "verbrechen" || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
else
{
cout << " Versuchs nochmal!!!" << endl;
cout << " crime" << endl;
cin >> one;
if ( ( one == "verbrechen" || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
;}
}
}
}
} <---- da ist der fehler !!
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
{
............
ich habe heute angefangen mich mit c++ auseinanderzusetzen und eine paar Programme erfolgreich geschrieben.
Ich habe unteranderem ein Vokabel lern programm geschrieben, doch da ist ein Fehler:
expected declaration before '}' token.
hier ist das programm:
#include <cstdlib>
#include <iostream>
#include <string>
#include <conio.h>
#include <windows.h>
#include <wincon.h>
using namespace std;
int main()
{
string Name, eat, aussage, one, two, three, run;
system ( "color 50");
system ( "color 00");
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " Herzlich Willkommen zu meinem VOKABELLERNPORGRAMM "<<endl;
cout << " Welcome to my VOCABULARY LEARNING PROGRAM"<<endl;
Sleep (2000);
cout <<" Bitte gib deinen Namen ein " << endl;
cout <<" Please write your name down" << endl;
cin>> Name;
cout << " " << endl;
cout << " Dann zeig mal was du kannst" << " " << Name << endl;
Sleep (2000);
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout <<" Unit 1" << endl;
cout << " Uebersetze ins Deutsche" << endl;
cout << " Schreibe alles klein und ohne Umlaute" << endl;
Sleep(2500);
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
cout << " " << endl;
{
cout << " crime" << endl;
cin>> one;
if ( ( one == "verbrechen " || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
else
{
cout << " Versuchs nochmal!!!" << endl;
cout << " crime" << endl;
cin >> one;
if ( ( one == "verbrechen" || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
else
{
cout << " Versuchs nochmal!!!" << endl;
cout << " crime" << endl;
cin >> one;
if ( ( one == "verbrechen" || one == "....." ) )
{
cout << " Gut gemacht!!!" << endl;
}
;}
}
}
}
} <---- da ist der fehler !!
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
{
............