hi, I am making a calculator and i need a function that can detect a char in a string. In other words, i need it to detect a NON-number.
string n1 = "35+66/7"; int pos = -1; n1.find(char, pos+1); cout << char.n1_find << " was found at "<< pos << endl;
I already know how to use the find function.
but that wont work in my calculator. Any solutions?