Hello... This still has got me stumped. Is there a way to cin check the options made available. For instance, if something other than V,A,G or Q is entered it will give an invalid input message and request to re-enter a valid option? Below is the piece of code in question. Thank you in advance
#include <iostream>
#include <iomanip>
using namespace std;
const char q = 'Q';
int main()
{
char option = ' ';
float volume, area, girth, length, width, depth;
option = tolower(option); // converts option input to lower case
while (option != q)
{
cout<< "To determine Volume, enter V \n"
<< "To determine Surface Area, enter A \n"
<< "To determine Girth, enter G \n"
<< "To quit, enter Q\n"
<< "Selection: ";
cin >> option;