Home > Back-end >  How to use C pointer from the callback function to the calling routine returns multiple values
How to use C pointer from the callback function to the calling routine returns multiple values

Time:10-18

Dev, please be callback function how to use c + + pointer to advocate tone function returns multiple values, grammar is how to write, defines the variables but be in advocate tone function callback function cannot be used, then I know how to be callback function of multiple values by return back to the calling routine?

CodePudding user response:

 void func (int * a, int * b) {
* a=10;
* b=20;
}
Int main () {
Int d;
int e;
Func (& amp; D, & amp; E);
cout}
  • Related