Java中的this随处可见,用法也多,现在整理有几点:1.
this是指当前对象自己。当在一个类中要明确指出使用对象自己的的变量或函数时就应该加上this引用。如下面这个例子中: 1 public class Hello
{ 2 3 String s = "Hello"; 4 5 pu...
分类:
编程语言 时间:
2014-05-12 15:27:37
阅读次数:
358
1 ; *** Inno Setup version 5.5.0+ Chinese messages
*** 2 ; 3 ; To download user-contributed translations of this file, go to: 4 ;
http://www.jrso...
分类:
其他好文 时间:
2014-05-10 18:55:59
阅读次数:
614
1.C++ string 转换为 NSString std::string str("hello");
// NSString *str = [NSString stringWithString:str.c_str()]; NSString *ocstr =
[NSStr...
分类:
编程语言 时间:
2014-05-10 08:14:05
阅读次数:
381
Hello
WorldLinux设备驱动的第一个例子。一.源程序(hello.c)#include#includeMODULE_LICENSE("DualBSD/GPL");staticinthello_init(void){printk(KERN_ALERT"Hello,world/n");ret...
分类:
系统相关 时间:
2014-05-10 07:40:47
阅读次数:
408
之前一直学习,现在终于有时间来整理一下文档了。以下文章都是自己学习Jquery
的笔记,希望能留下痕迹,也希望能帮助到您。好了开始我的Jquery第一天。我也是从Hello wrod!开始的。关于jquery 的引用我直接一笔带过。如下:
jquery 链式操作 接下来让我们来看看一个复...
分类:
Web程序 时间:
2014-05-10 06:19:01
阅读次数:
282
无标题文档hellodiv块覆盖在hello上,依然是透明的
分类:
Web程序 时间:
2014-05-10 06:03:45
阅读次数:
328
如图,点击按钮就会切换屏幕的颜色
首先,先创建一个安卓项目(我的版本是4.4.2的),名字为"world",当然,也可以别的名称
然后在res文件夹下找到layout文件夹,找到activity_main.xml或fragment_main.xml,在里面输入或拖拽按钮
<RelativeLayout xmlns:android="http://schemas.android.com/apk...
分类:
移动开发 时间:
2014-05-09 22:30:47
阅读次数:
441
importtypesaaa=0printtype(aaa)iftype(aaa)istypes.IntType:print"thetypeofaaaisint"ifisinstance(aaa,int):print"thetypeofaaaisint"bbb=‘hello‘printtype(bbb)iftype(bbb)istypes.StringType:print"thetypeofbbbisstring"ifisinstance(bbb,str):print"thetypeofbbbisstring..
分类:
编程语言 时间:
2014-05-09 21:28:19
阅读次数:
474
大家都喜欢用hell world来写第一个程序,python这里也写一个!
直接输入print"hello world"然后运行就ok啦,是不是很简单? 你确实没看错真的这么简单。
当然你可以也在cmd下面进行运行,前提是你配置了系统环境变量,(直接把python的安装路径添加到path里...
分类:
编程语言 时间:
2014-05-09 20:22:11
阅读次数:
322
用cocos2d-android开发android游戏时调用box2d中的newWorld(Vector2,boolean)时,出现如下报错:“java.lang.UnsatisfiedLinkError:Nativemethodnotfound:com.badlogic.gdx.physics.box2d.World.newWorld:(FFZ)J”解决方法:在当前类中添加代码:static{
System.loadLibrary("g..
分类:
移动开发 时间:
2014-05-09 14:28:27
阅读次数:
404