1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
//Vokabeltrainer
//Von Benjamin Milde
#include <iostream>
using namespace std;
int main ()
{
//Variablen
char K1_Deutsch[18][15];
char K1_Latein[18][15];
strcpy(K1_Deutsch[0], "Villa");
strcpy(K1_Deutsch[1], "Figur");
strcpy(K1_Deutsch[2], "Form");
strcpy(K1_Deutsch[3], "Statue");
strcpy(K1_Deutsch[4], "Flamme");
strcpy(K1_Deutsch[5], "Geschichte");
strcpy(K1_Deutsch[6], "Insel");
strcpy(K1_Deutsch[7], "Familie");
strcpy(K1_Deutsch[8], "Natur");
strcpy(K1_Deutsch[9], "Tier");
strcpy(K1_Deutsch[10], "Brief");
strcpy(K1_Deutsch[11], "Summe");
strcpy(K1_Deutsch[12], "Gott");
strcpy(K1_Deutsch[13], "Herr");
strcpy(K1_Deutsch[14], "Sohn");
strcpy(K1_Deutsch[15], "Freund");
strcpy(K1_Deutsch[16], "Sklave");
strcpy(K1_Deutsch[17], "und");
strcpy(K1_Deutsch[18], "Rom");
strcpy(K1_Latein[0], "villa");
strcpy(K1_Latein[1], "figura");
strcpy(K1_Latein[2], "forma");
strcpy(K1_Latein[3], "statua");
strcpy(K1_Latein[4], "flamma");
strcpy(K1_Latein[5], "fabula");
strcpy(K1_Latein[6], "insula");
strcpy(K1_Latein[7], "familia");
strcpy(K1_Latein[8], "natura");
strcpy(K1_Latein[9], "bestia");
strcpy(K1_Latein[10], "epistula");
strcpy(K1_Latein[11], "summa");
strcpy(K1_Latein[12], "deus");
strcpy(K1_Latein[13], "dominus");
strcpy(K1_Latein[14], "filius");
strcpy(K1_Latein[15], "amicus");
strcpy(K1_Latein[16], "servus");
strcpy(K1_Latein[17], "et");
strcpy(K1_Latein[18], "Roma");
char chEingabe[1000];
int Kapitelwahl;
int Punkte = 0;
const int iMin = 0;
const int iMax = 7;
//Auswahl
cout << "Welches Kapitel willst du lernen?\n\n";
cout << ">1<\t>2<\t>3<\t>4<\t>5<\n\n";
cout << ">6<\t>7<\t>8<\t>9<\t>10<\n\n";
cout << ">11<\t>12<\t>13<\t>14<\t>15<\n\n";
cout << ">16<\t>17<\t>18<\t>19<\t>20<\n\n";
cout << ">21<\t>22<\t>23<\t>24<\t>25<\n\n";
cin >> Kapitelwahl;
//Vokabelabfrage
switch (Kapitelwahl)
{
//Kapitel 1
case (1):
{
for (int i = 0;i<=18;i++)
{
cout << K1_Latein[i] << endl;
cin >> chEingabe;
if(!strcmp(chEingabe, K1_Deutsch[i]))
{
cout << "\tRichtig!" << endl;
Punkte++;
}
}
}break;
case (2):
{
for (int i = 19;i<=20;i++)
{
cout << i<<endl;
}
}break;
default:
{
cout << "Falsche Eingabe" << endl;
}
}
cout << "Sie haben " << Punkte << " Punkte\n";
return 0;
}
|