Untitled

 avatar
unknown
plain_text
2 years ago
434 B
1
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...