Kapitel 6 - Programm 12 - PHRASE.INL

zurück...

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
					 // Kapitel 6 - Programm 12 - PHRASE.INL
#include <string>

inline Phrase::Phrase(void)
{
   strcpy(Hauptwort, "");
   strcpy(Verb, "");
   strcpy(GanzePhrase, "(Noch kein Text)");
}

inline void Phrase::SetzeHauptwort(char *EinHauptwort)
{
   strcpy(Hauptwort, EinHauptwort);
}

inline void Phrase::SetzeVerb(char *EinVerb)
{
   strcpy(Verb, EinVerb);
}

inline char *Phrase::HolePhrase(void)
{
   strcpy(GanzePhrase, "Das ");
   strcat(GanzePhrase, Hauptwort);
   strcat(GanzePhrase, " ");
   strcat(GanzePhrase, Verb);
   return GanzePhrase;
}


// Ergebnis beim Ausführen
//
// (Diese Datei kann nicht ausgeführt werden)

zurück...