码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
Android 博客园客户端 (五) 查看评论、搜索博主
项目地址:https://github.com/ZhangTingkuo/AndroidCnblogs 1.查看评论 // 获取文章评论 public static final String BLOGS_COMMENTS = "http://wcf.open.cnblogs.com/blog/pos ...
分类:移动开发   时间:2016-04-01 09:07:34    阅读次数:229
cacti有图无数据
如图,配置好了半天,客户端仍无数据;-nan就是不正常的了。下面就是解决办法:在客户端操作:vim/etc/snmp/snmpd.conf#更改如下#sec.namesourcecommunitycom2secnotConfigUser192.168.20.168(cacti服务端的IP)public#nameincl/exclsubtreemask(optional)#viewsystemviewinclud..
分类:其他好文   时间:2016-04-01 06:50:15    阅读次数:223
智能指针
1.智能指针template<classT> classAutoPtr { public: AutoPtr(T*ptr) :_ptr(ptr) { } ~AutoPtr() { if(_ptr!=NULL) { cout<<"delete"<<_ptr<<endl; delete_ptr; _ptr=NULL; } } AutoPtr(AutoPtr<T>&ap) :_ptr(ap._ptr) { ap._ptr=NULL;//管..
分类:其他好文   时间:2016-04-01 06:43:53    阅读次数:124
C++ 中string类的三种模拟实现方式
1.原始版本(拷贝构造和赋值运算符重载时,需要重新开辟空间)#include<iostream> #include<string> usingnamespacestd; classString { friendostream&operator<<(ostream&os,constString&S); public: String(char*str="") :_str(newchar[..
分类:编程语言   时间:2016-04-01 06:43:42    阅读次数:494
vs2013简单的单元测试
第一步,文件→新建一个项目,如下图: 打开后,如图: 2.进入控制台项目,创建一个add静态方法,并将program类的权限声明为public。如图: 3.通过VS菜单栏【工具】-->【扩展和更新】-->搜索““Unit Test Generator””安装Unit Test Generator。安 ...
分类:其他好文   时间:2016-04-01 01:01:45    阅读次数:185
140201129-贾杰峰
p173-6 class Date{ private String info; private String identify; public Date(String info) { this.info=info; this.identify=identify; } public String ge ...
分类:其他好文   时间:2016-04-01 00:45:16    阅读次数:188
实验2
import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Set; public class demo{ private Map<String, Integer> words ...
分类:其他好文   时间:2016-03-31 23:27:47    阅读次数:194
《软件测试》课程实验2第三题
1、 学习单元测试代码覆盖率工具的使用 (1)把一个英语句子中的单词次序颠倒后输出。例如输入“how are you”,输出“you are how”; (2)编写单元测试进行测试; (3)用ElcEmma查看代码覆盖率,要求覆盖率达到100%。 代码: public class Method {  ...
分类:其他好文   时间:2016-03-31 23:25:58    阅读次数:169
dafeiji
public class PlanView extends View{ public float currentX; public float currenty; Bitmap plan; public PlanView(Context context) { super(context); plan ...
分类:其他好文   时间:2016-03-31 23:05:25    阅读次数:1368
导航栏实例
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or ...
分类:其他好文   时间:2016-03-31 21:47:17    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!