I want to include a function in my class to set the value of a boolean to the desired state. However, I am not sure about the syntax, especially because I do not know what type "true/false" is.
I was thinking about something similar to:
void setBool(boolean bBool, string str){
bBool = str;
}
int main (){
bool myBool;
string str = "false";
setBool (myBool, str);
return 0;
}
Does anybody have any ideas? What datatype would "true/false" be?