I am writing a program to where after a file is open, a temperature is put into a variable char temp[4000]; wile the program continues I need to check to see if there is a - in temp so that when I have all the temperatures it wont count -. what would be a way for me to check to see if there is a - in temp.
Attempted code:
if(temp.c_str() = "-")
If needed I can post the full code.
Attempted code:
if(temp.c_str() = "-")
If needed I can post the full code.
Comment