当您编译这个 C++ 文件时会发生什么
阅读下面这段 C++ 代码。
#include <Rcpp.h>
using namespace Rcpp ;
double twice(double x){
return x + x
}
这段代码已保存在变量 twice_file 指定的文件中。若使用 sourceCpp() 编译该文件,会发生什么?
本练习是课程的一部分
阅读下面这段 C++ 代码。
#include <Rcpp.h>
using namespace Rcpp ;
double twice(double x){
return x + x
}
这段代码已保存在变量 twice_file 指定的文件中。若使用 sourceCpp() 编译该文件,会发生什么?
本练习是课程的一部分