structure that describe a hotel with name, address,rooms
and number of rooms
Answer Posted / sumithra.a
struct hotel
{
Name,
Address,
Rooms,
RoomCount
};
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Out of fgets() and gets() which function is safe to use and why?
what do you mean by volatile variable?
Why do we use string in c++?
Is it possible for a member function to delete the pointer, named this?
When are exception objects created?
What is the use of turbo c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
What is operator overloading in c++ example?
When does the c++ compiler create temporary variables?
Are strings immutable in c++?
Why c++ is the best language?
What is the real purpose of class – to export data?
What is the difference between global variables and static varables?
How do we balance an AVL Tree in C++?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02