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?

Mamta MRank #268 · 9.4K reputationPosted Mar 9, 2011, 12:21 AM EST
http://msdn.microsoft.com/en-US/library/ms173172%28v=VS.100%29.aspx
http://msdn.microsoft.com/en-US/library/900fyy8e.aspx
VulpesRank #55 · 29.2K reputationPosted Mar 9, 2011, 5:51 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Mar 10, 2011, 8:20 AM EST