bash函数的返回值只能是一个数值,以0表示成功,非0表示失败。如果想在bash函数中返回除了数值之外的值,需要些技巧。以返回一个字符串为例:1. 通过全局变量var1 function fun()2 {3 var="Hello world!"4 }5 6 fun7 echo $var2. ...
分类:
其他好文 时间:
2014-06-26 20:18:05
阅读次数:
199
Basic Types and OperationsSomething new according to Java1 + 2跟(1).+(2)是一样的。val str = "Hello world"str indexOf 'o' 跟 str.indexOf('o')是一样的indexOf有两种形式的...
分类:
其他好文 时间:
2014-06-26 19:26:48
阅读次数:
193
Cocos2d-x v3.1 Hello world程序(四) 在上一篇文章中我们我们已经使用Cocos-Console工具生成了工程,本机生成的目录为:“D:\CocosProject\Tutorial”。我们进入该目录中,如下图: 本篇文章我们将使用Cocos2d-x引擎写一个最简单的工程——“...
分类:
其他好文 时间:
2014-06-26 18:50:36
阅读次数:
253
Today,it`s my first day to start a new lesson with c#!At first ,I want to study it just because java is a old language ,and run slower than c# many pe...
分类:
其他好文 时间:
2014-06-26 16:46:23
阅读次数:
191
模块模块同类一样,也有 class method 和 instance method。module 没有new不能生成实例对象其中 class method 在模块中称为模块方法,是可以直接调用的。module Foo
def self.hello
puts 'hello world!'
end
def Foo.dear #module全局作用域内的self还是没有变,就是...
分类:
其他好文 时间:
2014-06-26 14:19:28
阅读次数:
163
leetcode: Word Ladder II...
分类:
其他好文 时间:
2014-06-26 14:00:10
阅读次数:
130
Given a string s consists of upper/lower-case alphabets and empty space characters
' ',
return the length of last word in the string.
If the last word does not exist, return 0.
Note...
分类:
其他好文 时间:
2014-06-26 13:55:01
阅读次数:
179
Unity入门
用unity做一个最简单的交互。(相当于Hello World)只要最后能运行就算入门了。
第一步,要先用三维制作软件制作出我们需要的场景。
这儿使用的是Max2012(软件大小3.09G)。
首先设置一下在max使用的长度单位,选择使用米为单位。
设置步骤是Customize---->Units Setup---->System Unit Setup---->下拉选...
分类:
其他好文 时间:
2014-06-26 10:39:27
阅读次数:
694
Java 的 Hello World 代码
public class HelloWorld {
/**
*
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Syst...
分类:
编程语言 时间:
2014-06-26 10:21:19
阅读次数:
274
1、下载NDK,
??
android-ndk-r9c-windows-x86_64.zip,解压ndk,截图如下:
2、以编译ndk中的sample为例:
导入sample中的hello-jni项目,导入的项目结果如下:
3、右击项目:helloJni-->右击--->properties--->Builder
4、新建Builder---》Program
5、点击...
分类:
移动开发 时间:
2014-06-26 10:14:42
阅读次数:
291