how to store a struct in vector in c++
struct subject
{
string name;
int marks;
int credits;
};
vector<subject> sub;
Are there any code examples left?
New code examples in category C++
struct subject
{
string name;
int marks;
int credits;
};
vector<subject> sub;