码迷,mamicode.com
首页 >  
搜索关键字:public    ( 82854个结果
装饰者模式
以下是本程序的UML图以及代码:1、创建抽象组件类MobilePhone。1 public abstract class MobilePhone2 {3 public String phoneName;4 public abstract void SendMessage();...
分类:其他好文   时间:2015-12-29 20:51:15    阅读次数:171
Computer Graphics - code_2
#include #include #include #include #include #include #include using namespace std;typedef struct Point { //点结构public: int x; int y; struct Point() .....
分类:其他好文   时间:2015-12-29 19:26:22    阅读次数:179
Hibernate执行原生态sql语句
@Override public Integer update(String id, String username){ String sql = "update Team_CheLiang set username=:username where id =:id"; Query query=...
分类:数据库   时间:2015-12-29 19:24:36    阅读次数:235
独立完成的第一个c++面向对象程序(虽然很简单 以后会增加功能)
一个简单的商品展示程序功能如下:1.输出一张商品表(嘻嘻 就这一个功能)代码如下:#include#includeusing namespace std;class Goods {private:int amount;double price;string name;public:Goods();i...
分类:编程语言   时间:2015-12-29 19:17:13    阅读次数:133
模型绑定时对客户端传过来的数据做处理的几种方式
有时我们从客户端获取来的数据。不一定就是我们先要的,需要做一些处理。这里我们以一个model的属性需要做处理为例子。这里说5种解决方法。model:public class MyModel{ public string Encrypt { get; set; } public string...
分类:其他好文   时间:2015-12-29 19:09:22    阅读次数:230
Android状态栏兼容4.4.4与5.0,Android5.0状态栏由半透明设置为全透明
//判断android 版本然后设置Systembar颜色 public void initSystemBar() { Window window = getWindow(); //4.4版本及以上 if (Build.VERSION.SDK_INT ...
分类:移动开发   时间:2015-12-29 19:07:07    阅读次数:360
【原创】phpok一处SQL注射
看文件 :/framework/model/www/site_model.php 66行估计主机头注入很少能发现。在多处调用了我们就直接拿留言板处测试。public function get_one_from_domain($domain='') { $sql = "SELECT site_id F...
分类:数据库   时间:2015-12-29 19:02:24    阅读次数:245
Struts2 配置Action详解
Struts2的核心功能是action,对于开发人员来说,使用Struts2主要就是编写action,action类通常都要实现com.opensymphony.xwork2.Action接口,并实现该接口中的execute()方法。该方法如下: public String execute() th...
分类:其他好文   时间:2015-12-29 17:41:54    阅读次数:147
php命名空间详解
index.php:";class c extends demo{}$obj = new c();$obj -> say();demo:php"; }}namespace B;const b = 'I am in namespace B';class demo{ public funct...
分类:Web程序   时间:2015-12-29 16:20:42    阅读次数:178
初学Java,第一段代码
1 public class myapp { 2 3 public static void main(String[] args) { 4 // TODO Auto-generated method stub 5 System.out.println("Hello Jav...
分类:编程语言   时间:2015-12-29 16:17:52    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!