I have a struct and some elements in it, I am trying to create a vector of structs and fill it up but tbh im pulling my hair out cause I have no idea what I am doing. Could someone please help me with how I should set this up?
'''
#include <iostream>
#include <string>
#include <vector>
using namespace std;
//define structs
struct animalS
{
string animalType = "none";
int animalCount = 0;
bool animalEndangered = false;
};
int main()
{
vector<animalS> animal;
animal.push_back("" , 0 , true);
}
'''