#include #include using namespace std; struct showList { char startDate[11], startTime[10]; char showName[40]; }; struct channelGuideType { int channelNumber; char chAbbrev[6]; char chFullName[40]; struct showList thisWeek[336]; }; struct channelGuideType chGuide[57]; // This is a Global Variable!!! int main() { chGuide[10].channelNumber = 22; strcpy(chGuide[10].chFullName, "The Weather Channel"); strcpy(chGuide[10].chAbbrev, "TWC"); cout << "The 10th channel number is " << chGuide[10].channelNumber << endl; cout << "The 10th channel Abbreviation is " << chGuide[10].chAbbrev << endl; cout << "The 10th channel full name is " << chGuide[10].chFullName << endl; strcpy(chGuide[10].thisWeek[174].startDate, "01/21/2008"); strcpy(chGuide[10].thisWeek[174].startTime, "08:30 PM"); strcpy(chGuide[10].thisWeek[174].showName, "Storm Stories"); cout << "The 174th show of thisWeek on channel 10 starts on date " << chGuide[10].thisWeek[174].startDate << endl; cout << "The 174th show of thisWeek on channel 10 starts at time " << chGuide[10].thisWeek[174].startTime << endl; cout << "The 174th show of thisWeek on channel 10 is named " << chGuide[10].thisWeek[174].showName << endl; return 0; }