Untitled
unknown
plain_text
3 years ago
434 B
6
Indexable
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class schooler {
vector <int> jur;
string name="Arthur";
int cl = 3;
public:
void addmark(int bb)
{
jur.push_back(bb);
cout << jur[0];//чисто для проверки работы
}
};
int main()
{
schooler Arthur;
Arthur.addmark(5);
}Editor is loading...