If you open the connection from within a function, and only store the variable in a local variable, the connection will be closed when that function returns.
如果在一个函数中打开连接,并且只将句柄存储在一个本地变量中,那么当函数返回时,连接将被关闭。
If the record store is already open, this method returns a reference to the same record store object.
如果记录存储已经打开,这个方法将返回对同一个记录存储对象的引用。
A minor difference between a comparator and a filter is that a comparator returns the entire record store in sorted order, whereas a filter returns only those records that match a specified criteria.
比较器和过滤器之间的一个微小差别在于比较器返回排序后的整个记录存储,而过滤器只返回那些满足指定条件的记录。
So to store in n whatever GetInt returns.
所以存储在n中的是GetInt,的返回值。
应用推荐