Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
452 B
0
Indexable
Never
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;

class Shkila {

	int clas;
	string name;
	vector<int> ocenki;
public:
	void setocenki(int ocenka){
		ocenki.push_back(ocenka);
	}
	void setName(string new_name) {
		name = new_name;
	}
	void setclas(int cla) {
		clas = cla;
	}
};

int main()
{
	Shkila Artur;
	Artur.setName("Artur");
	Artur.setclas(10);
	Artur.setocenki(5);
}