Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Text{
- public:
- Text* txt;
- int n;
- Text();
- void Add(Text A);
- void Show();
- };
- class Symbol:public Text{
- public:
- const char * sym;
- Symbol(const char *m);
- void Show();
- };
- void Text::Show(){
- for(int i=0;i<n;i++)
- this->txt[i].Show();
- }
- Создаю экземпляры классов так:
- Text A;
- A.Add(Symbol("L"));
- A.Add(Symbol("L"));
- A.Show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement