I have a range of data which includes a designation name of a herd of cows (char), a number of cows per herd(Double) and a range of paddocks to associate with the herd (double) which may number between 4 to 60 paddocks per herd. I think an array would be best, with a default value of one data range but which is ultimately user defined by the number of herds they have. I would like to know if I can allocate a number (double) to the herds then associate that allocated number to the user defined herd name (Char). If this is possible then the array would work with all elements defined as doubles. Yes this is my first program and I have used this site and code blocks for my help so far. I also have an O'Reilly's pocket reference, Structured Programming with C++ and other sites.
std::string name;//I have a dislike for c-style strings
double cows;//Do you really need double? Will you have 1 and ⅓ cows in your herd?
//If not, change this to int or unsigned int
double paddocks;//Same here
temp.name = "moo";
temp.cows = 1.75;
temp.paddocks = 1;
data = temp;
std::cout << data.name << std.endl;