string getCommand(void){ string str="string"; return str; } int main(){ if(getCommand()=="string"){ //do something } return 0 }