void f1(float input){
listbox.Add(input*1);
}
void f2(float input){
listbox.Add(input*2);
}
void f3(function *inputFunction, argument *inputArgument){
inputFunction(inputArgument);
}
void main(){
f3(f1 , 1);
}
How do I make it possible to call f3, so that it has acces to either f1 or f2, with whatever argument I want?
Suthish NairPosted Mar 10, 2011, 1:20 PM
VulpesPosted Mar 9, 2011, 10:51 AM
Mamta MPosted Mar 9, 2011, 5:21 AM
http://msdn.microsoft.com/en-US/library/ms173172%28v=VS.100%29.aspx
http://msdn.microsoft.com/en-US/library/900fyy8e.aspx