struct pigs //my structure of pigs
{
int age[10];
int weight;
double poundsofmeat;
/*I just guessing with the [10] I want to read data for several pigs into an array*/
}
int main()
ifstream myfile=("pigfile.txt")
myfile.open //do you need to do something to read it besides .open?
/*I'm not sure how to read the data in or how to store the three things (age weight and pounds of meat) for my example into an array*/
{
pigs data[6]={age, weight, poundsofmeat} //pig array??