#include "stdafx.h"
#include <iostream>
#include <iomanip>
usingnamespace std;
struct Bureau
{
char Name[15];
int TelephoneNumber;
char SpeakingTopic[40];
double FeeRequired;
};
int main()
{
constint SIZE = 3;
int speakers;
cout << "How many speakers need to be reserved? ";
cin >> speakers;
Bureau *bureaus;
bureaus = new Bureau[SIZE];
cout << "\nPlease enter the data for each speakers. " << endl;
cout << "----------------------------------------" << endl;
for ( int i = 0; i < SIZE; i++ )
{
cout << "\nEnter the data for speaker's #" << ( i + 1 ) << " name: ";
cin >> bureaus[i].Name;
cout << "\nEnter the telephone number for speaker's #" << ( i + 1 ) " :";
cin >> bureaus[i].TelephoneNumber;
cout << "\nEnter the speaking topic for speaker's #" << ( i + 1 ) " :";
cin >> bureaus[i].SpeakingTopic;
cout << "\nEnter the required fee for speaker's #" << ( i + 1 ) " :";
cin >> bureaus[i].FeeRequired;
}
return 0;
}