Hello,
So the code below is what I need the forward_list option to work for. In the list there is a section for iteration, which I take it means the number of inputs/items that are to be put into the list. Is there a way to make a user generated integer the number used in that function? like how I can use mainfile.open(filename.c_str()); to call the actual string content to name the file created with it?
//Possible use forward_list to generate the list of time points
// Will Generate user input data of time points to create list number of inputs to link
for (int i=1; i <= anum; i++, group++) {
outgroup = group/n;
cout << " <AddressEntry>""\r\n\n"" <AddressData>" << stdnum << " Total:_______""\r\n\n""R" << i << """\r\n\n"
<< outgroup << " hr Tare:_______</AddressData>""\r\n\n""<Name>""\r\n\n""<FirstName>" << stdnum << " Total:_______</FirstName>""\r\n\n""<LastName></LastName>""\r\n\n";
}
The number of inputs/items that are to be put into the list need not be specified before-hand.
We can create an empty std::forward_list<> and then insert elements into it as and when required.