#include <iostream>
#include <string>
usingnamespace std;
int main()
{
for(bool loop(true);loop==true;){
cout<<"Enter The Conversion Type (Type Help For A List): ";
string Conversion_Type;
getline(cin,Conversion_Type);
for(int i=0;i<Conversion_Type.length();i++){
Conversion_Type[i]=tolower(Conversion_Type[i]);}
if(Conversion_Type=="exit"){
return 0;}
if(Conversion_Type=="help"){
cout<<"\n Conversion Types \n";
cout<<" ---------------- \n";
cout<<" Help = Brings Up The Help Menu \n";
cout<<" Temperature = Converts Fahrenheit,Celsius, And Kelvin To One Another\n";
cout<<" Currency = Converts Currencies \n";
cout<<" Hash = Converts And Decrypts MD5,SHA-0,SHA-1,and SHA-2 Hashes \n";
cout<<" Exit = Exits The Program \n\n";}
if(Conversion_Type=="temperature"){
cout<<"Do You Want To Convert A Temperature To Fahrenheit,Celsius, or Kelvin: ";
string Convert_To_Unit;
getline(cin,Convert_To_Unit);
for(int i=0;i<Convert_To_Unit.length();i++){
Convert_To_Unit[i]=tolower(Convert_To_Unit[i]);}
if(Convert_To_Unit=="fahrenheit"||Convert_To_Unit=="celsius"||Convert_To_Unit=="kelvin"){
cout<<"Is The Temperature You Want To Convert Fahrenheit,Celsius, or Kelvin: ";
string Base_Unit;
getline(cin,Base_Unit);
for(int i=0;i<Base_Unit.length();i++){
Base_Unit[i]=tolower(Base_Unit[i]);}
if(Base_Unit=="fahrenheit"||Base_Unit=="celsius"||Base_Unit=="kelvin"){
cout<<"Enter The Temperature: ";
string Temperature;
getline(cin,Temperature);
bool Number(true);
for(int i=0;i<Temperature.length();i++){
if(isdigit(Temperature[i])){}
else{
Number=false;}}
if(Number==true){
cout<<"It's a number \n";}
else{
cout<<"It's not a number \n";}
else{
cout<<Base_Unit<<" Is An Invalid Option \n";}}
else{
cout<<Convert_To_Unit<<" Is An Invalid Option \n";}}}}}
and just so everyone knows this program is FAR from complete
You have your brackets mixed up. Most people use a coding style that matches the brackets up so that mistakes like this are harder to make and easy to spot: