#include #include #include using namespace std; class cLiterka { public: char cZnak; }; class cText { public: void vHelloWorld( cLiterka cChar[], int nMax ); }; void cText::vHelloWorld( cLiterka cChar[], int nMax ) { for( int i = 0; i < nMax; ++i ) { cout << cChar[i].cZnak; } } int main() { cText tText; string sZestaw = "Hello World!"; cLiterka cZnaki[sZestaw.length() - 1]; for( int i = 0; i < sZestaw.length(); ++i ) { cZnaki[i].cZnak = sZestaw[i]; } tText.vHelloWorld( cZnaki, sZestaw.length() ); getch(); return 0; }