Share this post

Link to post

Share on other sites

oh I just wrote that real quick, lemme copy the code. for example if you want to enter "CAR" you have to type in "CAR(" its using the ( to determine its the end of the string. but it works fine, first time around the loop, then it just goes to "input error"

Share this post

Link to post

Share on other sites

I don't fully understand why you would want the user to type in CAR( and then try and look for the ( to determine the end of the string, because the string type in c++ lets you compare two strings using the == operator.