NSNotFound 定义一个值,用于指示请求项找不到或不存在.Defines a value that indicates that an item requested couldn’t be found or doesn’t exist. enum { NSNotFound = NSIntegerMax}; NSEnumerationOptions 块枚举操作的选项.Options for Block enumeration operations. enum { NSEnumerationC
一,java端: 定义native方法, 'public native long factorial(int n);', 该方法用c/c++实现,计算'1到20阶乘的和',参数中'int n'是前n项的阶乘的和(这里是20).返回计算结果,并返回java调用处. 代码为: public class FactorialJava { public native long factorial(int n); //evaluate the elapse time.and the execution re