While searching for potential errors on a program that I am creating, I got "[Error] ISO C++ forbids comparison between pointer and integer [-fpermissive]."
The error is coming from my while loop, wherein I intended that the program accepts only the following inputs from the user. Right now, I am considering to use an array for this one.
How should I fix this? If anybody any more details, I am more than happy to provide them by showing what I am (as of late).
int main () // While using one of the three functions to make conversions, 
// the program will create the table based on following information. 
{
    char dimension;
    double u1, u2;  
    int starting_value, ending_value, increment, startingUnitDigits, 
    endingUnitDigits;
    cout << "-------------------------------------------------------------------------------------------------";
    cout << "Please answer the following questions as they appear.";
    cout << "Check spelling, use correct abbreviation for units of measurement, and avoid negative values.";
    cout << "-------------------------------------------------------------------------------------------------";
    cout << "Enter the dimensions from the following choices: length, mass and time. (i.e.: 'length,' 'Length').";
    while (!(dimension == "length" || dimension == "Length" || dimension == "mass" || dimension == "Mass" || dimension == "time" || dimension == "Time"))
    {
        cout << "----------------------------------------------------------------------------------------------------";
        cout << "Error! Input for Dimension, " << dimension << ", was either an invalid choice or typed incorrectly.";
        cout << "Please know that this programs accepts length, mass, and time only!";  
        cout << "----------------------------------------------------------------------------------------------------";
        cout << "Enter the dimensions from the following choices: length, mass and time. (i.e.: 'length,' 'Length').";
        cin >> dimension;   
 
     
    