In my program for one procedure I am reading in the colors for resistance bands then setting them to true if they're being used. In another procedure I need to output only the flagged bands, and was unsure how to approach this. I'm also not supposed to use classes, just array of records. Here's my code so far
void setup (ifstream &, bandrecord[]);
//reads in string and band resistance
//sets flag to false
void getbands (istream &, bandrecord[]);
//requests bands from user and sets flag to true
bandtype str_to_color (const string &);
//converts string to color
//used in getbands procedure
void printbands (ostream &, const bandrecord[]);
//prints name of each band and resistance
//for each band selected
int totalresistance (const bandrecord[]);
//returns total resistance for all bands selected
void resetbands (bandrecord[]);
//sets the is_used flag to false
void weight_to_bands(int, bandrecord[]);
//for part 2 of program
//calcualtes the bands used and sets the is_used flag
int main()
{