码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
静态路由的配置
第一步,PC设置IP地址和网关第二步,路由器配置接口地址[Huawei]sys R1[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24[R1-GigabitEthernet0/0/0]int g0/0/1[R1-GigabitEt...
分类:其他好文   时间:2015-05-29 11:47:51    阅读次数:236
leecode之Implement strStr()
KMP算法的实现:#include #include #include int strStr(char* haystack, char* needle) { if (haystack == NULL || needle == NULL) return -1; if (nee...
分类:其他好文   时间:2015-05-29 11:41:11    阅读次数:89
杭电oj 3361
Tips:字符在计算机中都是以ASCII码形式保存,直接以char形式输出ASCII码即可。 1 #include 2 int main() 3 { 4 int T; 5 scanf("%d",&T); 6 int a[T]; 7 for(int i = 0;i < ...
分类:其他好文   时间:2015-05-29 11:38:53    阅读次数:99
pull解析xml
具体结构图参考saxpublic class Person { private int id; private String name; private int age; public int getId() { return id; } p...
分类:其他好文   时间:2015-05-29 11:37:10    阅读次数:82
Java 数组基础
Java 数组基础数组 数组(Array):相同类型数据的集合。定义数组 方式1(推荐,更能表明数组类型) type[] 变量名 = new type[数组中元素的个数]; 比如: int[] a = new int[10]; 数组名,也即引用a,指向数组元素的首地址。 方式2(同C语...
分类:编程语言   时间:2015-05-29 11:33:27    阅读次数:104
Java Learning(5) -- ArrayList
如何动态的查看ArrayList的容量?在ArrayList提供的方法中,有三个方法:size() -- 返回当前列表中的元素数量;trimToSize() -- 将当前ArrayList容量调整为列表的当前大小;ensureCapacity(int minCapacity) -- 如果需要扩展列表...
分类:编程语言   时间:2015-05-29 11:30:01    阅读次数:127
128 Longest Consecutive Sequence
public class Solution { public int longestConsecutive(int[] nums) { HashMap hs = new HashMap(); for (int i : nums) { hs.pu...
分类:其他好文   时间:2015-05-29 11:29:33    阅读次数:109
会爆栈,dfs传参,只能传1个~~RMQLCA在线
#include#include#include#pragma comment(linker, "/STACK:1024000000, 1024000000")#includeusing namespace std;const int M = 400015;struct Edge{ int v...
分类:其他好文   时间:2015-05-29 11:28:29    阅读次数:107
链路聚合
链路聚合提高带宽[Huawei]int eth-trunk 1[Huawei-Eth-Trunk1]undo portswitch[Huawei-Eth-Trunk1]ip add 192.168.1.1 24[Huawei-Eth-Trunk1]int g0/0/0[Huawei-GigabitE...
分类:其他好文   时间:2015-05-29 11:22:11    阅读次数:135
静态路由配置2
静态路由的配置第一步,PC设置IP地址和网关第二步,路由器配置接口地址[Huawei]sys R1[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24[R1-GigabitEthernet0/0/0]int g0/0/1[R1-Gi...
分类:其他好文   时间:2015-05-29 11:21:10    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!