- 博客(6)
- 收藏
- 关注
原创 int *&p的类型
结论 int *&p p是一个整形指针的引用,如果p的地址改变了,那么它引用的指针的地址也改变 code#include <iostream> #include <map> #include <string> #include <list> using namespace std;void test1(int *p){ int k= 999; p =&k; }void te
2017-03-29 13:37:57 1576
原创 求阵列中能最长路径的某点以及它的路径
来自朋友的一个面试题 贴代码 #include <iostream> #include <vector> #include "stdlib.h" using namespace std;struct Node{ Node *father; int x; int y; int len; };const int WIDTH =4; const int HEIGHT
2017-03-27 19:19:57 263
原创 在chrome中调试异步加载的js文件
@sourceURL我们常常利用chrome强大的控制台Sources下面进行代码断点调试,但是通过$.getScript等异步加载JS的方式在Sources里面就是找不到,那如何进行debug断点调试呢?方案一: 在script代码的头部或者尾部加上//@ sourceURL=xxx.js,然后在(no domain)里面找到它进行调试,如果使用firefox浏览器,直接在debug中就可以找到x
2017-03-24 11:09:20 1561
转载 常用的代理设置
npmnpm config set proxy=HOST:PORT附带写上npm的registry设置 npm config set registry=http://registry.npmjs.org 或者 安装nrmgitgit config –global http.proxy HOST:PORT git config –global https.proxy HOST:PORTcmd[
2017-03-24 10:36:26 387
原创 八皇后c++版本
八皇后 直接丢代码,留个纪念 #include <iostream> #include <cstdlib> using namespace std;void queen(int n); void display(int arr[]); void putChess(int arr[],int size,int row,int col);int main(){ queen(8); }bool
2017-03-08 18:34:07 792
原创 括号匹配
描述 现在,有一行括号序列,请你检查这行括号是否配对。输入 第一行输入一个数N(0#include <iostream> #include <vector> #include <string> using namespace std;int check(string s){ vector<char> vec; for (int i = 0; i < s.lengt
2017-03-07 16:03:38 277
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人