编程基础
Snowwolf_Yang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++ vector 初始化
2011-01-26 12:16:08| 分类: c++|举报|字号 订阅 /* * vector 初始化 */ #include #include #include #include using namespace std; void main() { vector::iterator int_ite; vecto转载 2014-04-21 22:11:51 · 1366 阅读 · 0 评论 -
【C/C++基础】c/c++强制类型转换
c/c++强制类型转换 Q:什么是C风格转换?什么是static_cast, dynamic_cast 以及 reinterpret_cast?区别是什么?为什么要注意? A:转换的含义是通过改变一个变量的类型为别的类型从而改变该变量的表示方式。为了类型转换一个简单对象为另一个对象你会使用传统的类型转换操作符。比如,为了转换一个类型为doubole的浮点数的指针到整型: 代码: int原创 2014-04-10 10:26:58 · 747 阅读 · 0 评论 -
extern “C”{}的含义及解决的问题
原文出处: C与C++程序连接问题 它们之间的连接问题主要是因为c c++编绎器对函数名译码的方式不能所引起的,考虑下面两个函数 /* c*/ int strlen(char* string) { ... } //c++ int strlen(char* string) { ... } 两个函数完全一样。在c在函数是通过函数名来识别转载 2014-04-10 10:14:56 · 1084 阅读 · 0 评论
分享