//X.cc #include "X.hh" #include #include X::X(int N) { n = N; for(int i = 0; i < n; i++) Rprintf("Hello world %d times!\n", i); Rprintf("Normal %f \n", pnorm(1.96, 0, 1, 1, 0)); } X::~X() { for(int i = 0; i < n; i++) Rprintf("Goodbye world %d times!\n", i); }