做一个小测试,代码如下:package com.lc.day02;public class StringTest { public static void main(String[] args) {
String string = "csdn! My love!";
System.out.println(string);
}
}
在String stri...
分类:
编程语言 时间:
2015-05-15 21:29:31
阅读次数:
115
1.AIDL文本解释
在软件工程中,接口定义语言(IDL)已经成为通用术语,是用来描述软件组件接口的特定语言。在Android中,该IDL被称为Android接口定义语言(AIDL),它是纯文本文件,使用Java类似语法编写。但是,编写Java接口的编写AIDL文件还有有些不同的。
首先,对所有的非原始类型参数,需要指定如下三种类型方向指示符之一:in,out,inout。in类型方向指示符只...
分类:
移动开发 时间:
2015-05-15 21:25:45
阅读次数:
272
wsdl.exe /l:cs /out:d:/WxPayment.cs http://localhost/WxPayment.asmx
分类:
Web程序 时间:
2015-05-15 19:42:59
阅读次数:
131
Jinja是一个python的模板引擎。可以使用pipinstalljinja2安装In[61]:fromjinja2importTemplate
In[62]:template=Template(‘Hello{{name}}!‘)
In[63]:template.render(name=‘JohnDoe‘)
Out[63]:u‘HelloJohnDoe!‘参考文档:http://jinja.pocoo.org/docs/dev/
分类:
编程语言 时间:
2015-05-15 18:02:42
阅读次数:
261
// 浅拷贝与深拷贝
// 像这样的浅拷贝会导致程序崩溃,因为同一个空间被释放了两次
#include
#include
using namespace std;
class S_Copy;
ostream& operator<<(ostream& out, const S_Copy &s);
class S_Copy
{
friend ostream& operator<<(ostr...
分类:
编程语言 时间:
2015-05-15 17:41:50
阅读次数:
99
Java作为一门优秀的面向对象的程序设计语言,正在被越来越多的人使用。在实际开发中碰到的一些Java语言的容易被人忽视的细节,下面分享一下希望能给正在学习Java语言的人有所帮助。1,位移运算越界怎么处理考察下面的代码输出结果是多少?inta=5;System.out.println(a<<33);..
分类:
编程语言 时间:
2015-05-15 15:51:41
阅读次数:
139
// cout重载能不能写成成员函数,若能,写出函数原型,若不能,说明原因
#include
using namespace std;
// cout做友元
class A;
ostream& operator<<(ostream &out, const A &a);
class A
{
friend ostream& operator<<(ostream &out, const A &...
分类:
编程语言 时间:
2015-05-15 15:37:01
阅读次数:
136
This one lets you print out one topological sorted sequence. Either BFS or DFS works. But there are tricky details.This is my reference:https://leetco...
分类:
其他好文 时间:
2015-05-15 08:57:26
阅读次数:
144
Python 2.6新增的multiprocessing,即多进程,给子进程代码调试有点困难,比如python自带的pdb如果直接在子进程代码里面启动会抛出一堆异常,原因是子进程的stdin/out/err等文件都已关闭,pdb无法调用。据闻winpdb、Wing IDE的调试器能够支持这样的远程调...
分类:
编程语言 时间:
2015-05-15 07:50:21
阅读次数:
315
?For-Each循环的加入简化了集合的遍历?其語法如下–for(type element : array) { System.out.println(element).... }?参见程序 ForTest.java当遍历集合或数组时,如果需要访问集合或数组的下标,那么最好使用旧式的方式来实现循环或...
分类:
其他好文 时间:
2015-05-15 01:13:02
阅读次数:
122