摘要:
class student { private String name="zhang"; private int num=12; @Override public String toString() { return "名字为:" + name +","+ "学号为:" + num; } } public class Main { ... 阅读全文
posted @ 2019-10-08 22:42
pycodego
阅读(444)
评论(0)
推荐(0)
摘要:
//可以看出我们想调用的是:void fun(int a, int *b);但实际上我们调用的是第二个函数 //而C++11中添加的nullptr就可以解决这个重载问题,减少很多不必要的BUG,编译环境允许的话,还是多多使用nullptr吧。 阅读全文
posted @ 2019-10-08 21:40
pycodego
阅读(516)
评论(0)
推荐(0)
摘要:
package bfs; class Solution{ private boolean used[][]; private int dir[][]=new int[][] {{-1,0},{0,-1},{1,0},{0,1}}; public boolean isCheckMove(String[] map,int x,int y) { return x>=0&&x<map.length&&y> 阅读全文
posted @ 2019-10-08 13:24
pycodego
阅读(456)
评论(0)
推荐(0)

浙公网安备 33010602011771号