Ich benutzte devcpp und Windows 7
Hier mal der Quellcode:
Code: Alles auswählen
#include <iostream>
using namespace std;
int main()
{
    int Anzahl;
    int Stelle=0;
    string eVokabeln[Stelle];
    string dVokabeln[Stelle];
    
    cout<<"Willkommen beim Englisch-Vokabeltraining! \n\n\n Wieviel Vokabeln moechten sie lernen?"<<endl;
    cout<<"Anzahl: "; 
    cin>>Anzahl;
    
    cout<<"Geben sie nun die englischen Vokabeln und ihre deutsche Uebersetzung ein: "<<endl;
    
    for (short Anzahlfor=0;Anzahlfor<=Anzahl;++Anzahlfor)
    
    {
              cout<<"englische Vokabel: "; cin>>eVokabeln[Stelle];
              cout<<"\ndeutsche Vokabel: "; cin>>dVokabeln[Stelle];
                                
                                Stelle++;                     
                      
        /*      cout<<Anzahl<<endl;                                  
              cout<<eVokabeln[0]<<endl;
              cout<<dVokabeln[0]<<endl;   */                               //Testausgabe
    }
    
}
Edit by cloidnerux: code-tags, Titel angepasst, war "Kleine Englisch-Programm"




