Code: Select all
class TestClass : public wxFrame{
public:
void myMethod(int x, bool y){
if(!y){
sqrt(x);
}
else{
pow(x, 3);
}
}
}
Code: Select all
if(!y){
sqrt(x);
} else{
pow(x, 3);
}