[Solved]Include Include Using Namespace Std Int Main String Namesptr Int Size Cout Many Names Like Q37170465
#include <iostream>
#include <string>
using namespace std;
int main()
{
string * namesPtr;
int size;
cout << “How many names do you like to store:”;
cin >> size;
namesPtr = new string[size];
// a.Write C++ code that inputs data(names) into
// the dynamic array in part a above from thekeyboard.
// hint: you need to write a loop
// b.Write C++ code that output datafrom the dynamic array to in part b above to the screen.
// hint:you need to write a loop
// c.Write a C++ code to de-allocates(frees) the memory space allocated
// for the dynamic array created in part aabove.
system(“pause”);
return 0;
}
Expert Answer
Answer to #include #include using namespace std; int main() { string * namesPtr; int size; cout > size; namesPtr = new string[siz… . . .
OR

