#include <iostream>
#include<string>
using namespace std;
//Create a container that will hold individual room specific contents
struct room{
bool table;
int chairs;
float classAverage;
bool projector;
int windows;
int doors;
string keyNumber;
string roomName;
};
int main(){
room D155; //Create a specific room and set its unique characteristics
D155.chairs = 25;
D155.classAverage = 93.75;
D155.keyNumber = "78M";
D155.windows = 0;
D155.projector = true;
D155.table = true;
D155.doors = 1;
D155.roomName = "D155";
cout << "The room number is:" <<D155.roomName<< endl;
cout << "The room holds " << D155.chairs
<<" and the class average is: "<<D155.classAverage<<endl;
return 0;
}
#include<string>
using namespace std;
//Create a container that will hold individual room specific contents
struct room{
bool table;
int chairs;
float classAverage;
bool projector;
int windows;
int doors;
string keyNumber;
string roomName;
};
int main(){
room D155; //Create a specific room and set its unique characteristics
D155.chairs = 25;
D155.classAverage = 93.75;
D155.keyNumber = "78M";
D155.windows = 0;
D155.projector = true;
D155.table = true;
D155.doors = 1;
D155.roomName = "D155";
cout << "The room number is:" <<D155.roomName<< endl;
cout << "The room holds " << D155.chairs
<<" and the class average is: "<<D155.classAverage<<endl;
return 0;
}
No comments:
Post a Comment