You are not logged in.
Pages: 1
i'm looking to create something like this but i don't know how to pass a function to another function and i cant figure it out from anything online
void function(){
25 * var +21
}
class new {
int var = 20;
public:
int output;
void process(void a){
output = a;
}
};
int main(){
new n;
n.process(function);
cout << n.output << endl;
}
Computer Training institutes Nepal @ neosphere.com.np
Offline
Pages: 1