Not every small value is a count. A room can have a one-letter zone code, and a booking can have a yes-or-no status. C++ has types for both.
A char stores a single character value. Write a character literal with single quotes, such as 'B'. A bool stores one of the two logical values true and false. These are C++ keywords, so they have no quotes.
#include <iostream>
int main() {
char shelf = 'C';
bool reserved = false;
std::cout << "Shelf: " << shelf << "\n";
std::cout << std::boolalpha;
std::cout << "Reserved: " << reserved << "\n";
return 0;
}
This prints the shelf character and then Reserved: false. Normally, std::cout displays booleans as 1 and 0. The supplied std::boolalpha changes boolean output to the words true and false. It changes how the value is displayed, not the value itself, and remains in effect for later boolean output on that stream.
Compare 'C' and "C": the first is one character literal; the second is a text literal. Use char for the single-character code requested here, and std::string for names or longer labels. Do not try to put a whole room name between single quotes.
The two starter values use different notation: the zone code needs single quotes, while the open status uses an unquoted boolean keyword. Leave std::boolalpha and the output statements in place. They already handle displaying the values, so neither task needs a new print statement.
zone to the character 'A'.open to true.Edit main.cpp, press Run to inspect the Console, then Submit to check these results.