I have to write a prototype and execution of a C ++ function which gets one character and if the correct word There is a tone and wrong otherwise The lower letter 'A' in the vocabulary includes uppercase and lowercase 'E', 'I', 'O' and 'U'.
I have written
bool vowelOrNot (char x) {if (x = "a" or "e" or "i" or "o" or "u" ) Cout & lt; & Lt; "True" & lt; & Lt; Endl; And cout & lt; & Lt; "False"
I have written or reason that I do not know how to do lines here, am I right on my function?
bool vowelOrNot (char x) // ( If (X == 'A' || X == 'E' || X == 'I' || X == 'O' || X == 'U') // == For comparison and singles Excerpt for: // logical OR {cout
Comments
Post a Comment