fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct myclass {
  5. myclass() : x(0) {}
  6.  
  7. double x;
  8. };
  9.  
  10. double testfunction ( double x , void *param ) {
  11. myclass *bar=static_cast<myclass*>(param);
  12.  
  13. /*** do something with x and bar***/
  14.  
  15. return bar->x;
  16.  
  17. }
  18.  
  19. int main() {
  20. // your code goes here
  21.  
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty