Question
Declare a structure whose tag name is Server and that contains the following fields: manufacturer, a string, model and serialnum, both also strings, year, an int, clockSpeed, a double, cores, an int, ram, an int and finally storage an int.
Solution
struct Server
{
string manufacturer, model, serialnum;
int year;
double clockSpeed;
int cores, ram, storage;
};
No comments:
Post a Comment