首先编写Java类,用于调用C++库导出的方法:
public class TestMain{ public native boolean printInfo(); public native int getNum(); public native void setNum(int num);
阅读全文 »