码迷,mamicode.com
首页 >  
搜索关键字:out    ( 35870个结果
protobuf简单序列化反序列化示例
protoc命令格式 protoc -I=SRC -cpp_out = DRC SRC\*.proto SRC:源路径;DRC:目的路径;当出现下面无法打开文件错误时,应在工程属性目录下的包含目录文件中添加工程所在路径 D:\!exercise\c++\protob1\protob1\错误 1 e....
分类:其他好文   时间:2015-04-05 23:06:29    阅读次数:905
面向对象_静态代码块
特点:随着类的加载而执行,只执行一次,并优先于主函数作用:用于给类进行初始化用的格式: static{ 静态代码块中的执行语句 } 1 public class StaticCode1 { 2 static{ 3 System.out.println("b"); 4...
分类:其他好文   时间:2015-04-05 20:23:07    阅读次数:132
JAVA学习笔记(五十八)- InetAddress类与URL
InetAddress类 /* * InetAddress类 */ public class Test07 { public static void main(String[] args) throws UnknownHostException { //获取本机的InetAddress实例 System.out.println("*******获取本机...
分类:编程语言   时间:2015-04-05 16:08:28    阅读次数:134
zoom to raster resolution
don't execute the ESRI's command, just find out and write codes to zoom to the raster resolution. Here they are, I hope they will help.Unfortunately (...
分类:其他好文   时间:2015-04-05 13:22:22    阅读次数:325
HDU 1022 Train Problem I stack 基础题
题意:有一个火车站,只有一个口同时用于进入和出去,但不能有2辆或以上同时进出。给出一个n代表有n辆火车(n 2 #include 3 #include 4 using namespace std; 5 char in[12]; 6 char out[12]; 7 int ans[24]; 8 int...
分类:其他好文   时间:2015-04-05 13:16:36    阅读次数:129
调试系统调用
这篇是网易云课堂《Linux内核分析》这门课的作业这周的作业是用GDB调试系统调用。我断点倒是能打上,但是单步执行的时候总是乱跳,而且变量值也查不到,都是optimized out。查了下好像是因为编译优化的问题。目前我也没有什么好办法。不管了先把实验截图和流程图发上来。
分类:其他好文   时间:2015-04-05 13:14:07    阅读次数:165
类方法isAssignableFrom、instanceof和asSubclass的区别及实例
public boolean isAssignableFrom(Classif (List.class.isAssignableFrom(ArrayList.class)) { System.out.println("list is assignable from arraylist"); } if (ArrayList.class.isAssignableFrom(List.class)) {...
分类:其他好文   时间:2015-04-05 09:14:09    阅读次数:128
hw笔试题-01
#include #include #include int str_split(char *input, char *output, int *out){ char *p; int i,in_len,len,max,flag; in_len = strlen(input)...
分类:其他好文   时间:2015-04-04 18:01:30    阅读次数:120
Java是值传递还是引用传递
Java的八种基本数据类型是值传递(只是数值的传递,更原来的变量没有关系,原值不会发生改变),但是如果是数据是对象类型的那么就是引用的传递,例子如下:packagecom.minimax.demo; publicclassTest{ publicstaticvoidmain(String[]args){ inta=10; System.out.println(..
分类:编程语言   时间:2015-04-04 16:53:55    阅读次数:241
杨辉三角
你还在申请一个大的数组来存放杨辉三角吗,你out啦;知道队列么,杨辉三角其实是可以用队列来实现的,一个也好,两个也罢,当然你也可以用N个,那就得看你是怎么想的了。一、使用一个队列打印杨辉三角#include#includeusing namespace std;void print(int n).....
分类:其他好文   时间:2015-04-04 13:40:24    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!