Guest User

Untitled

a guest
Nov 28th, 2018
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. class Foo {
  5.     public:
  6.         double bar(double a, double b, double c, double d){
  7.             double result = a* b;
  8.             double value = c* d* (sin(result)/result);
  9.             std::cout << result << "\n";
  10.             std::cout << value << "\n";
  11.             return value;
  12.         }
  13. };
  14.  
  15. extern "C" {
  16.     Foo* Foo_new(){ return new Foo(); }
  17.     double Foo_bar(Foo* foo, double a, double b, double c, double d){ foo->bar(a, b, c, d); }
  18. }
  19.  
  20. int main() {}
RAW Paste Data