Ok I have this...
Code:
//THIS IS IN MAIN.....
Holding* ptr[5];
int i = 0;
Then I have this :
Code:
//THIS IS A FUNCTION I'M CALLING FROM MAIN....
else if(toLowerChoice = 'r')
{
cout << "Enter recording title: " << endl;
std::cin.ignore('\n', 10);
std::cin.getline(recordingTitle, 100);
cout << "Enter performer: " << endl;
std::cin.getline(recordingPerformer, 100);
cout << "Enter format: " << endl;
std::cin.getline(recordingFormat, 100);
cout << "Enter call number: " << endl;
cin >> recordingCallNum;
Holding* ptr[i] = new Recording(recordingPerformer, recordingFormat, recordingTitle, recordingCallNum);
}
return Holding* ptr[i];
basically I need to take all that input I was trying to figure out cin for....
Holding is my base class...and I need to declare an array of 5 pointers of type Holding. Then I need to build a new Recording object with all those variables I got from user input...then return the Recording object as a "Holding" object...just in case you were trying to figure out what I was doing....my stuff's a mess....