导航栏自带的按钮,时常不能满足要求,所以深深需要进行各种定制.写一个UINavigationItem的category//
UINavigationItem+CB_ChangeButton.h?@interface UINavigationItem
(CB_ChangeButton)- (void)...
分类:
其他好文 时间:
2014-05-15 11:28:21
阅读次数:
201
public class Test { public static void
main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:
其他好文 时间:
2014-05-15 10:13:33
阅读次数:
224
public class Test{ public static void
main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0));
}}//false...
分类:
其他好文 时间:
2014-05-15 10:03:08
阅读次数:
216
public class Test { public static void
main(String[] string){ int[] i = new int[10];
System.out.println(i.equals(null)); }...
分类:
其他好文 时间:
2014-05-15 09:54:00
阅读次数:
250
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace MegreSort{ class Program { static void
Main(s...
分类:
其他好文 时间:
2014-05-15 09:21:59
阅读次数:
171
绘制图形如下:
程序代码:
需要重新定义父类虚函数draw()
1、在HelloWorldScene.h头文件加入:
virtual void draw();
2、定义实现:
void HelloWorld::draw()
{
//add your code....
CHECK_GL_ERROR_DEBUG();
CCSize size = CC...
分类:
其他好文 时间:
2014-05-15 09:10:32
阅读次数:
285
inteXosip_init(void)voideXosip_quit(void)相信大家并不陌生或许对你整个程序有所启动,当需要拆分exosip,还原到osipeXosip_execute
分类:
其他好文 时间:
2014-05-15 08:40:54
阅读次数:
280
平台:VS2010版本:1.04我们先看看消息队列的数据结构:typedefstructRAW_QUEUE
{
RAW_COMMON_BLOCK_OBJECTcommon_block_obj;
RAW_MSG_Qmsg_q;
RAW_VOID(*queue_send_notify)(structRAW_QUEUE*queue_ptr);
}RAW_QUEUE;RAW_MSG_Q:typedefstructRAW_MSG_Q{
RAW_VOID**queue_sta..
分类:
其他好文 时间:
2014-05-15 08:35:51
阅读次数:
318
面向对象编程--句柄类与继承引言: C++中面向对象编程的一个颇具讽刺意味的地方是:不能使用对象支持面向对象编程,相反,必须使用指针或引用。void get_prices(Item_base object,
Item_base *pointer,
Item_base &reference)
{
//需要根据指针或引用实际所绑定...
分类:
编程语言 时间:
2014-05-15 08:19:33
阅读次数:
359
#include
#include
using namespace std;
class Base
{
public:
Base(){}
~Base(){}
public:
virtual void f1(int x){ cout "baseclass: f1() " x << endl; }
virtual void f2()final{ cout "baseclass: f2() "...
分类:
编程语言 时间:
2014-05-15 08:11:39
阅读次数:
271