自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 资源 (5)
  • 收藏
  • 关注

原创 Android 射击类游戏 (一)

以前见过一个C#写的射击类游戏。最近看了点android开发的东东,五一期间将游戏改成了android。游戏的截图废话就不多说了,开始设计。1. 类设计图上图就是主要牵涉到的一些类 红色是抽象类。看图基本一目了然了。类里的方法,代码会贴出来(或者相关伪码)2. 抽象类实现Element.java/*** www.91gangting

2012-04-29 21:31:54 852

原创 岗亭图片管理 (一)

桦骏岗亭登陆界面欢迎界面:/** * 上海桦骏 * 91gangting.com */public class WelcomeView extends SurfaceView implements SurfaceHolder.Callback //实现生命周期回调接口{ LCCXActivity activity;//activity的引用 Pain

2012-03-09 16:07:41 993

原创 Android --- BaseAdapter

BaseAdapter就Android应用程序中经常用到的基础数据适配器,它的主要用途是将一组数据传到像ListView、Spinner、Gallery及GridView等UI显示组件,它是继承自接口类Adapter。class MyAdapter extends BaseAdapter { private LayoutInflater mInflater; private List>

2012-02-27 22:25:34 316

原创 StandupTimer 之 PreferenceActivity

PreferenceScreen xml  preference下的View是有限的,只有下面几个:CheckBoxPreference:CheckBox选择项,对应的值的ture或flaseEditTextPreference:输入编辑框,值为String类型,会弹出对话框供输入。ListPreference: 列表选择,弹出对话框供选择。Preference:只进行文本显示,需要与

2011-12-19 23:17:55 649

转载 关于char *p和char p[]

见论坛上有人讨论这个问题,感觉也是涉及面比较广,而且很多人犯过这个错误,比如声明char *p = "hello world!";却妄图用p指针改变字符串内容,所以就这个问题,我总结了一下。转载注明作者Logic0以及出处。主要解析的问题:问题1:#include "stdio.h"char *get_string_1(){    char p[] = "hello world!";   

2011-06-29 21:41:00 211

原创 Asynchronous Method Invocation 【翻译】 (六)

Wait a minute! On which thread is the call-back executed on?After all, the callback is invoked by .NET using your delegate, but still it is .NET that calls this delegate. It is your right and duty t

2011-06-24 00:48:00 372

原创 Asynchronous Method Invocation 【翻译】 (五)

Using the Callback delegate, Hollywood style "Don�t call me I will call you!"At this point, you should understand how parameters can be passed, how to pass state, and understand the fact that your m

2011-06-24 00:13:00 308

原创 Asynchronous Method Invocation 【翻译】 (四)

What they don�t want you to know about IAsyncResultYou should be wondering how EndInvoke is able to give us the output parameters and the updated ref parameters. Or, better yet, how EndInvoke is abl

2011-06-23 22:06:00 358

原创 Asynchronous Method Invocation 【翻译】 (三)

Passing parameters to your methodOkay, so calling functions without parameters is not going to take us very far, so I am going to modify my super fancy and sophisticated Foo function to take a few p

2011-06-23 20:56:00 273

原创 Asynchronous Method Invocation 【翻译】 (二)

BeginInvoke() and EndInvoke()So far we saw how to invoke a method without really knowing when it is finished. But with EndInvoke(), it is possible to do a few more things. First of all, EndInvoke wi

2011-06-23 12:29:00 317

原创 Asynchronous Method Invocation 【翻译】 (一)

IntroductionIn this article, I am going to explain asynchronous method calls and how to use them. After playing with delegates, threads, and asynchronous invocation for so long, it would be a sin

2011-06-22 21:36:00 385

原创 Effective C++ 2nd Edition (6)

<br />十八. 努力让接口完满( complete )且最小化<br />1. 接口函数愈多,潜在客户愈不容易了解它<br />2. 大型接口容易令人迷失。<br />3. 可维护性差<br />4. 长长的头文件,编译时间长<br /><br />十九. 区分member functions, non-member functions和friend functions 三者<br /><br />member functions和non-member functions之间最大差异,成员函数可以是虚函

2011-01-11 21:57:00 232

原创 Effective C++ 2nd Edition (5)

<br />十五. 令operator=回传 *this 的reference <br />String& String::operator=(const String& rhs){ return *this; //传回一个reference,左侧对象}String& String::operator=(const String& rhs){ return rhs; //传回一个reference,右侧对象}<br /><br />感觉才不多,其实里面不一样哦。<b

2011-01-10 21:57:00 170

原创 Effective C++ 2nd Edition (4)

<br />十一. 如果class内动态配置有内存,请为此class声明一个copy constructor和一个assignment运算符<br /><br />简陋的string class<br />class String{public: String(const char *value); ~String(); private: char *data;};String::String(const char *value){ if(value)

2011-01-10 21:14:00 311

原创 Effective C++ 2nd Edition (3)

九. 避免掩盖了new的正规形式内部范围的一个声明,会掩盖外部相同的名称。 operator new这东东那。方法1:写一个class专属的operator new class X{public: void f(); static void* operator new(size_t size,new_handler p); static void* operator new(size_t size) { return ::operator new(size);

2011-01-10 17:03:00 199

原创 Effective C++ 2nd Edition (2)

五. 使用相同形式的new和deletestring *pstr = new string[];delete [] pstr;  //删除一个对象数组 ------------------------------------string *pstr = new string;delete pstr;  //删除单一对象反正需要匹配的,要不内存管理方面就出错咯六. 记得在destructor中以delete对付pointer members按侯高手说法, 就按顺序干这些事情比较安全:1. constructo

2011-01-10 16:38:00 254

原创 Effective C++ 2nd Edition (1)

一.  尽量以const 和 inline 取代#define也就是尽量“编译器取代预处理器”const编译器可以更好检查错误,带着数据类型,调用,传递,做函数参数及返回值,长得也帅(呵呵);#define 这玩意也就是个替换不检查错误;类的inline,效率高,调用开销低;inline好歹是个函数,调试时候检查错误方便;类的保护,private什么的也方便。好处多多,记住就行了吧。二 .  尽量以取代废话不说,记住就行。属于历史遗留问题。。。。。三 . 尽量以new和delete取代malloc和free

2011-01-10 15:47:00 239

固定资产金蝶手册

固定资产金蝶手册,中文手册,固定资产金蝶

2012-03-09

漂亮的C#软件启动界面特效源码

漂亮的C#软件启动界面特效源码 vs2008

2009-10-20

c#调用存储过程的相关代码

C#一些基本的调用存储过程的东东 比较适合新人用用 平时收集了些 呵呵~希望支持

2008-10-27

3G网CDMA

Dr.CDMA的说明。做移动方面的可以参考下<br>

2008-07-28

卡西欧采集器一个程序

卡西欧数据采集器DT900一个程序,有可以参考学习下

2007-06-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除