这个问题在NetEase电话面试的时候被问到过,完全蒙了。。。
return 之后程序不是停止了么???
finally不是一定要执行么???
finally里面再return??What is the fuck???
写了如下的程序测试了一下,可以先别看答案,猜猜结果。
public class ReturnTest {
public static void main(String[] args) {
System.out.println("=============test1==================");
System.out.println(test1());
继续阅读 »
Here is a quiz on magrittr and you may check if you are really good at using it. Since the CRAN version currently does not support nested ., it won't be interesting to make a quiz on that version. All the following examples are using the latest development version on GitHub. You can do the same test with the CRAN versi继续阅读 »
Typically, you only need to execute the following command for compiling project.
bash
xmake
xmake will probe your host environment and target platform automaticly.
The default mode is release and xmake will compile all targets.
You can compile only one given target which name is 'test' for executing the follo继续阅读 »
xmake provides some api, which can detect whether exist some library functions.
```lua
target("test")
-- checks some libc functions from the header files: wchar.h and stdlib.h
add_cfuncs("libc", nil, {"wchar.h", "stdlib.h"}, "wcscat",
继续阅读 »