AngularJS快速开始Hello World!开始学习AngularJS的一个好方法是创建经典应用程序“Hello World!”:使用您喜爱的文本编辑器,创建一个HTML文件,例如:helloworld.html。将下面的源代码复制到您的HTML文件。在web浏览器中打开这个HTML文件。源代...
分类:
Web程序 时间:
2014-07-22 22:49:12
阅读次数:
183
String 是一个有序的字符集合,例如 "hello, world", "albatross"。Swift 字符串通过 String 类型来表示,也可以表示为Character 类型值的集合。Swift 的 String 和 Character 类型提供了一个快速的,兼容 Unicode 的方式来...
分类:
其他好文 时间:
2014-07-22 00:32:37
阅读次数:
255
说明: 本文依赖于 contiki/platform/native/contiki-main.c 文件。 在项目工程目录下的hello-world.c 文件里面,有许多的宏,但没有最关键的main()函数出现,也无法知道这个 文件里的 "hello world"什么时候打印。那么只能根据mak...
分类:
其他好文 时间:
2014-07-22 00:31:37
阅读次数:
275
1、char数组转string有很多种方法:假设c字符串定义为char ch[]="hello world!";1.向构造函数传入c字符串创建string对象:string str(ch);2.使用拷贝构造函数创建string对象:string str = ch;3.对已有的string对象调用st...
分类:
其他好文 时间:
2014-07-21 14:39:47
阅读次数:
226
import Foundation
println("Hello, World!")
//声明一个函数 不带参数 没有返回值
func func1(){
}
//声明一个函数 传入两个String类型参数 , 没有返回值
func func2(v1:String, v2:String){
println(v1 + "and" + v2)
}
//声明一个求和的函数
fu...
分类:
其他好文 时间:
2014-07-21 13:33:46
阅读次数:
209
import Foundation
println("Hello, World!")
/*
for do While While Switch
*/
var arr = [1,2,3,4,5,7];
for i in arr{
println(" i is \(i)");
}
var count = arr.count;
for (var i = 0 ; i<count; ...
分类:
其他好文 时间:
2014-07-21 13:23:47
阅读次数:
190
import Foundation
println("Hello, World!")
var arr = [1,2,4,6,74,2]
func hasClosure(list:[Int], v2:Int, cb:(num:Int, v3:Int) ->Bool) ->Bool{
for item in arr{
if(cb(num:item, v3:v2...
分类:
其他好文 时间:
2014-07-21 13:15:37
阅读次数:
250
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> ? ? <met...
分类:
其他好文 时间:
2014-07-21 10:30:36
阅读次数:
221
按照contiki 官方给出的example下的例子之hello world来说,所有的工程里面都有一个唯一的Makefile。然后这个Makefile会去调用其他makefile文件。于是,一切就从此出发吧。说明: 本文依赖于 contiki-2.6/examples/hello-world...
分类:
其他好文 时间:
2014-07-21 08:21:08
阅读次数:
310
PHP 基础知识部分1. 求$a的值 复制代码 代码如下: $a = "hello"; $b = &$a; unset($b); $b = "world"; echo $a;2. 求$b的值 复制代码 代码如下: $a = 1; $x = &$a; $b = $a++; echo $b;3. 写出一...
分类:
Web程序 时间:
2014-07-20 08:28:45
阅读次数:
331