
Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Тестовые примеры / ch2 / window
.h // source file name: window.h
#ifndef WINDOW_H
#define WINDOW_H
#include <iostream.h>
#include "menu.h"
class window : public menu {
private:
int xcord, ycord;
public:
// constructor function
window( const int x, const int y, const char* str ) : menu(str) {
xcord = x;
ycord = y;
};
// destructor
~window() {};
// window-specific function
void show (ostream& os ) {
os << xcord << ',' << ycord << " => " << name() << endl;
};
};
#endif