Programs
Лабораторная работа №2
Вариант 9
Главная
Здесь ошибка
Код:
#include "stdafx.h" #include using namespace std; class WOW { public: int down; }; class AL { char a, b; void privates() { cout << "privates" << endl; first(); second(); third(); } protected: void first() { cout << "first" << endl; } void second() { cout << "second" << endl; } void third() { cout << "third" << endl; } WOW object1; int *kek = &(object1.down); public: char *mas[2] = { &a,&b }; void input(char a1, char b1) { a = a1; b = b1; } void go() { privates(); } }; int main() { AL *obj = new AL; obj->input('c', 1); obj->go(); delete (obj); return 0; }