There's not enough information to fully answer the question. However, when dealing with ages, you're either looking for those above or below a certain age, or determining which range of ages an object/person belongs.
The following snippet determines if an object represents a minor or a person of working age. Those who have reached retirement age aren't necessarily retired.
std::cout<<object.name<<' ';
if(object.age<16)
std::cout<<"is a minor."<<std::endl;
else if((object.age>60 && object.sex==female) object.age>65)
std::cout<<"is probably retired."<<std::endl;
else
std::cout<<"is of working age."<<std::endl;
If statement is single selection statement,whereas the switch statement is multiple selective.
The goto statement.
Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)
if while switch
The basic control structure in C++ is the if statement.
...a function call.
if (condition) statement else statement;
The switch / case statement.
The semi-colon converts a C++ expression into a statement.
I believe, you can use C-function - printf().
You can not print your name in C without a semi colon because according to the rules of C every statement should end with a semi colon.In fact without the semi colon it fails to be a valid C statement.
No. That would be a syntax error. Only a right semicolon (;) can go at the end of a statement.