技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2014年6月5日 #

GO语言中的指针

摘要: http://www.tizgrape.com/?p=100Go语言中的指针语法和C++一脉相承,都是用*作为符号,虽然语法上接近,但是实际差异不小。Go使用var定义变量:var v6 *int // int* v6; (but no pointer arithmetic)x = *p(*in... 阅读全文

posted @ 2014-06-05 17:49 codestyle 阅读(4240) 评论(1) 推荐(0) 编辑