30.06.2013 Aufrufe

Softwareentwicklung in C++ - ASC

Softwareentwicklung in C++ - ASC

Softwareentwicklung in C++ - ASC

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

44 }<br />

45 t e x t = new char [ s t r l e n ( text ) + 1 ] ;<br />

46 strcpy ( t e x t , text ) ;<br />

47 }<br />

48<br />

9.4 Weitere wichtige technische Aspekte 235<br />

49 //−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

50 /∗ d e s t r u c t o r<br />

51 ∗/<br />

52<br />

53 TextObject : : ˜ TextObject ( )<br />

54 {<br />

55 i f ( t e x t )<br />

56 delete [ ] t e x t ;<br />

57 }<br />

58<br />

59 //−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−<br />

60 void displayObject ( const Displayable & o b j e c t )<br />

61 {<br />

62 cout

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!