摘要: go语言切片索引范围为半开区间,比如s[m:n]包含m,但不包含n,总共的元素数量为n-m。 go语言变量声明 var name type = expression 不能把指针直接赋值给结构体成员 阅读全文
posted @ 2017-10-16 21:40 涉谷猫猫 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include #include static void sayHello(); static void salute(); void sayHello(){ const char *m = "func_pointer\n"; printf(m); printf("%d\n", strlen(m)); } void salute(){ printf("... 阅读全文
posted @ 2017-10-16 00:48 涉谷猫猫 阅读(124) 评论(0) 推荐(0) 编辑