随笔分类 -  C/C++

摘要:python调用C/C++ 参考:http://blog.csdn.net/taiyang1987912/article/details/44779719 阅读全文
posted @ 2017-09-19 07:31 海之涯2008 阅读(336) 评论(0) 推荐(0)
摘要:1,C语言常见的宏 __FUNCTION__等: http://blog.csdn.net/dafan/article/details/5781491 2, sprintf 如何输出unsigned char类型数据 :http://zhidao.baidu.com/link?url=SWGuGjh 阅读全文
posted @ 2016-08-04 17:12 海之涯2008 阅读(154) 评论(0) 推荐(0)
摘要:在写C/C++程序的时候,编译时有可能会遇到类似于“incompatible types when assigning to type 'char[128]' from type 'char *'” 这样的错误。解决: 如 char buf[128]; sprintf(buf, "Hello... 阅读全文
posted @ 2014-04-26 17:21 海之涯2008 阅读(529) 评论(0) 推荐(0)
摘要:文章来源:http://blog.csdn.net/jansonleader/article/details/5348321多数情况下再也不用写自定义比较函数了反向迭代器1反向迭代器其实没什么特殊的,他只是在遍历的方向上和普通迭代器不通而已:每一个容器里面都有Iterator(迭代器),可以从容器的... 阅读全文
posted @ 2014-04-18 10:48 海之涯2008 阅读(1901) 评论(0) 推荐(0)
摘要:PrecedenceOperatorDescriptionExampleAssociativity1() [] -> . :: ++ --Grouping operator Array access Member access from a pointer Member access from an object Scoping operator Post-increment Post-decrement(a + b) / 4; array[4] = 2; ptr->age = 34; obj.age = 34; Class::age = 2; for( i = 0; i < 阅读全文
posted @ 2013-04-07 23:34 海之涯2008 阅读(150) 评论(0) 推荐(0)