Question
C++ define 2 functions that operate on the array of structures below. The first function will print all of the members of all elements of
C++ define 2 functions that operate on the array of structures below. The first function will print all of the members of all elements of the array of structures and the second function will sum and concatenate the strings in the structure.
#include
using namespace std;
int main() { enum length {7Yards, 14Yards, 21Yards}; struct AerialSilk { string Fabric; string Color; int Quantity; length Length; double iprice; }; AerialSilk arrAerialSilk[6] { {" silk ", " Burgundy ", 1 , 7Yards, 173} {" silk ", " Aqua ", 1 , 14Yards, 236} {" silk ", " Navy ", 1 , 21Yards, 309} {" silk ", " Orange ", 2 , 7Yards, 346} {" silk ", " Silver ", 2 , 14Yards, 472} {" silk ", " Emerald ", 2 , 21Yards, 618} } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1

Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2

Step: 3

Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started