here's my basic stuff...obviously not finished yet...
Code:
#include "stdafx.h"
#include <iostream>
#include <istream>
#include <string>
#include "Recording.h"
#include "Book.h"
#include "Holding.h"
using namespace std;
int main(void)
{
//need to declare an array of five pointers to Holding
char holdingChoice, toLowerChoice;
char bookTitle[100] , bookAuthor[100], recordingTitle[100], recordingPerformer[100],recordingFormat[100];
int bookCallNum, recordingCallNum;
char buf[100];
cout << "Enter holdings to be stored in list: " << endl;
cout << "\nEnter B for book or R for recording: " << endl;
cin >> holdingChoice;
toLowerChoice = tolower(holdingChoice);
if(toLowerChoice == 'b')
{
cout << "Enter book title: " << endl;
std::cin.getline(buf, 100);
cout << "Enter author: " << endl;
cin >> bookAuthor;
cout << "Enter call number: " << endl;
cin >> bookCallNum;
}
else if(toLowerChoice = 'r')
{
cout << "Enter recording title: " << endl;
cin >> recordingTitle;
cout << "Enter performer: " << endl;
cin >> recordingPerformer;
cout << "Enter format: " << endl;
cin >> recordingFormat;
cout << "Enter call number: " << endl;
cin >> recordingCallNum;
}
return 0;
}