I want to know how can I set the boolean value for a class. Ive seen this in other peoples code but I cant figure out how to do it myself.The format will be like this:
class myClass{
   //...
};
myClass getClass(){
  myClass myclass;
  //...
  return myclass;
}
int main(int argc, char **argv){
  myClass myclass;
  myclass = getClass();
  if(myclass){
    //do stuff
  }
  //...
  if(!myclass){
    //do other stuff
  }
  return 0;
}
 
     
    