Question: In C++, write a program to: there is an array of name : {Steven, Chris, Joe, Sofie}, loop through the name array, assign int id's
In C++, write a program to: there is an array of name : {Steven, Chris, Joe, Sofie}, loop through the name array, assign int id's to each name, starting at 1001, and in the order (so Steven would be assigned 1001, Chris 1002, etc), Finally, print out and name and its id assigned, the output will be like the following: (please don't use class. Use parallel arrays, the first array contains names, and the second array contains id. and please show the real process of "assigning a value to a name", because I have no ides how to assign an int value to a string value ). Thanks!
Steven 1001 Chris 1002 Joe 1003 Sofie 1004
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
