码迷,mamicode.com
首页 >  
搜索关键字:vector map value    ( 72712个结果
java web 程序---注册页面核心代码哈希Map
收获:在运行程序的时候,错误出现。主要是map没有进行判断,是否为空,如果为空,则创建一个对象new HashMap();然后就注意细节,String name=request.getParameter("name"); String pass=request.getParameter("pa...
分类:编程语言   时间:2014-05-13 17:33:42    阅读次数:276
项目代码的缺陷
由于现在很多业务我都是在copy代码所以代码有的没有用有的对象是null,有的却不是obj=map.get()之后对象的属性有的之前都set好了在map.put的之前又设置了多余吧,应该删掉你
分类:其他好文   时间:2014-05-13 17:18:21    阅读次数:184
php观察者模式。
第一次写博客,大家多多关照!欢迎拍砖哦! 我也刚学设计模式,所以记录下来。 $name)) $this->$name=$value; } public function __get($name){ if(isset($this->$name)) return $this->$name;...
分类:Web程序   时间:2014-05-13 16:44:27    阅读次数:390
C++ Vector的使用
C++ Vector的使用...
分类:编程语言   时间:2014-05-13 16:14:41    阅读次数:221
HDU Bombing (STL multiset+map)
题意:给你 n 个坐标(x,y),m 个询问(c,d) c==0,求出x==d有多少个,并删除这些点; c==1,求出y==d有多少个,并删除这些点。 map+multiset的多重映射 #include #include #include #include #include #include #include #include #include #includ...
分类:其他好文   时间:2014-05-13 15:13:07    阅读次数:253
Pat(Advanced Level)Practice--1044(Shopping in Mars)
Pat1044代码 题目描述: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can...
分类:其他好文   时间:2014-05-13 14:33:08    阅读次数:437
Android中使用Sqlite数据库 (二) 增删改查
定义接口packagecom.example.android_db.service; importjava.util.List; importjava.util.Map; publicinterfacePersonService{ publicbooleanaddPerson(Object[]params); publicbooleandeletePerson(Object[]params); publicbooleanupdatePerson(Object[]params); publicMa..
分类:移动开发   时间:2014-05-13 13:06:04    阅读次数:454
Android 使用Sharedpreference共享参数
importjava.util.HashMap; importjava.util.Map; importandroid.content.Context; importandroid.content.SharedPreferences; publicclassMySharedpreference{ privateContextcontext; publicMySharedpreference(Contextcontext){ //TODOAuto-generatedconstructorstub this.co..
分类:移动开发   时间:2014-05-13 12:10:38    阅读次数:346
算法导论—排序之插入排序
//升序void insertion_sort(vector &num){ for(int i = 1; i =0 && num[j] >= val){ num[j+1] = num[j];...
分类:其他好文   时间:2014-05-13 11:42:59    阅读次数:190
HDU3920:Clear All of Them I(状态压缩)
Problem Description Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.   There are 2 * n enemies in the map. Your task is to clear a...
分类:其他好文   时间:2014-05-13 11:29:40    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!