码迷,mamicode.com
首页 >  
搜索关键字:class    ( 183544个结果
Java WebService 实现读写Redis数据库
一、准备工作 1、MyEclipse10 2、JDK 1.7.0 3、apache-tomcat-6.0.13 二、创建服务端 1、创建【Web Service Project】,命名为【TheService】。 2、创建【Class】类,命名为【ServiceHello】,位于【com.wty.service】包下。 3、编写供客户端调用的方法,...
分类:数据库   时间:2015-05-25 10:17:20    阅读次数:271
unity 调用手机摄像机 识别二维码
简单的调用手机摄像 拍摄 然后识别二维码 显示二维码的内容 需要导入一个zxing.unity.dll文件 下载地址http://download.csdn.net/detail/chh19941125/8734149 代码: using System.Threading; using UnityEngine; using ZXing; public class WebCameraScr...
分类:移动开发   时间:2015-05-25 10:16:34    阅读次数:387
C++线索二叉树求最矮公共父亲节点
#include #include #include using namespace std;class Expection//一个自定义的异常类 { public: void Null_Thing()//空指针异常. { cout<<"Expection!!!,this is null"<<e...
分类:编程语言   时间:2015-05-25 10:08:40    阅读次数:104
android自定义gridview,根据item自动适应高度
代码如下 package com.loopfire.meitaotao.view; import android.content.Context; import android.util.AttributeSet; import android.widget.GridView; /** * 自定义gridview * @author hai * */ public class MyGr...
分类:移动开发   时间:2015-05-25 10:05:50    阅读次数:154
LeetCode Combination Sum III
LeetCode Combination Sum III题目思路DFS代码class Solution { public: vector<vector> Ans; vector AnAns; int K; int N; vector<vector > combinationSum3(int k, int n) {...
分类:其他好文   时间:2015-05-25 10:01:27    阅读次数:126
【C++自我精讲】基础系列六 PIMPL模式
【C++自我精讲】基础系列六 PIMPL模式 前言  很实用的一种基础模式。 1 PIMPL解释 定义:PIMPL(PrivateImplementation 或 Pointer to Implementation)是通过一个私有的成员指针,将指针所指向的类的内部实现数据进行隐藏。 2 PIMPL优点 举例: //x.h class X {...
分类:编程语言   时间:2015-05-25 09:59:16    阅读次数:132
water men
今天,被一位先生问到了一个Java的问题,下面的代码应该输出什么: Class Demo{ public static void main(String[] args){ String s = "0"; change(s); System.out.println(s); } static void change(String s){ s = "123"; } } 说...
分类:其他好文   时间:2015-05-25 09:57:23    阅读次数:179
条款5:了解C++提供的默认函数
当我们定义一个类时,如何没有声明任何函数,那么C++编译器会默认提供4个函数:默认构造函数、复制构造函数、赋值操作符函数、析构函数,并且这些函数默认都是public且inline的。因此,当你定义如下类: 1 class Empty 2 { 3 4 }; 5 6 // 等价于定义如下类:...
分类:编程语言   时间:2015-05-25 08:33:11    阅读次数:145
贪吃蛇
#ifndef DRAW_H#define DRAW_H#include"Define.h"class Draw{public: void drawAPicture(int x, int y, char p[], short int color = 0xff00, int sizeWidth = 8...
分类:其他好文   时间:2015-05-25 07:23:15    阅读次数:126
访问者模式(Visitor)
2015/5/25 访问者模式(Visitor) 访问者模式是编者自学习设计模式以来最难的一个模式。 定义:表示一个作用于某对象结构中的各元素的操作,它使你可以在不改变各元素的类的前提下定义作用于这些元素的新操作。#include using namespace std; class Visitor; class library{ public: /*定义一个Ac...
分类:其他好文   时间:2015-05-25 06:07:45    阅读次数:92
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!