码迷,mamicode.com
首页 >  
搜索关键字:maybe not public    ( 83099个结果
赵雅智_android_ui_dialog
运行效果: 方法一 public void openDialog(View v) { // 打开一个对话框 // 构建者对象 AlertDialog.Builder builder = new Builder(this); // 构建者创建一个对话框 AlertDialog alertDialog = builder.create(); // 设置对话框的标题 ...
分类:移动开发   时间:2014-06-07 01:14:00    阅读次数:252
C++必知必会(3)
条款26操作符函数查找 class X {        public:               Xoperator %( const X& ) const;             //二元取余操作               XmemFunc1( const X&);               voidmemFunc2(); }; 可以采用中缀或函数调用语法来调用这个重载...
分类:编程语言   时间:2014-06-05 12:31:55    阅读次数:311
关于codehunt Level 02.01 的疑问
codehunt Level 02.01 原题大意如下 : 假设给定下列函数声明 public static int[] Puzzle(int n) { return null; } 要求写出该方法具体函数代码,返回值应为下列类似的值 n 值 1 {0} 2 ...
分类:其他好文   时间:2014-06-05 10:10:14    阅读次数:180
Android WebView在4.4版本以上无法获取高度
在4.4以下的系统中,我们通常监听webview滑动到底端的方法如下: 1,先重新webview,FoundWebView public class FoundWebView extends WebView { ScrollInterface mt; public FoundWebView(Context context) { super(context);...
分类:移动开发   时间:2014-06-05 08:37:47    阅读次数:269
ThreadPool原理分析
看下ThreadPoolImpl的构造函数: /** * This constructor is used to create an unbounded threadpool */ public ThreadPoolImpl(ThreadGroup tg, String threadpoolName) { inactivityTimeout = ORB...
分类:其他好文   时间:2014-06-05 07:41:45    阅读次数:386
使用Spring RMI调用远程方法
Spring有多种调用远程的方式,今天学习了一下远程方法调用(RMI)。 RMI需要服务端和客户端 我们先从服务器开始 我的代码结构 package rmi; public interface ServerRmiI { public String sayHi(String name); } package rmi; public class Ser...
分类:编程语言   时间:2014-06-05 06:57:55    阅读次数:207
关于C++对象模型的思考
一、我们首先看一个例子,一个孙子类继承了两个父亲类,两个父亲类同时继承同一个爷爷类。 #include using namespace std; class Parent { public: int p_; // p将会被所有的子类继承,也将是二义性的根源 Parent(int p)...
分类:编程语言   时间:2014-06-05 06:00:45    阅读次数:217
acm 投简历
#include #include using namespace std; class jianli { public: void getvalue() { cin>>name>>age>>sex>>major; } void display() { cout<<"name:"<<name<<en...
分类:其他好文   时间:2014-06-05 05:35:42    阅读次数:235
ViewServer接受hierarchyviewer的命令
AUTOLIST 线程阻塞,命令发送后,会等待viewserver反馈结果。viewserver在检测到界面跳转以后才会回馈结果。 private class WindowChangeMonitor implements Runnable { private IDevice device; public WindowChangeMonitor(IDevice devi...
分类:其他好文   时间:2014-06-05 01:11:43    阅读次数:213
14周 项目3 立体类族共有的抽象类
#include using namespace std; class CSolid { public: virtual double area() const=0; virtual double volume() const=0; }; class CCube:public CSolid { public: CCube(double s):...
分类:其他好文   时间:2014-06-04 23:22:58    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!