Untitled
unknown
plain_text
3 years ago
366 B
6
Indexable
#include <iostream>
#include <vector>
#include <string>
class mothers {
private:
std::vector<int> markmas;
public:
mothers(std::string m_name) : name(m_name) {};
void AddMark(int a) {
markmas.push_back(a);
};
private:
std::string name;
int numcl;
};
int main()
{
mothers arthur("arthur");
int a;
std::cin >> a;
arthur.AddMark(a);
}Editor is loading...