c++
梦22
这个作者很懒,什么都没留下…
展开
-
c++标准化前后
#include 在c++中,是指标准化以前的标准c库中的字char*字符串处理函数 #include 中在1988年标准化以后,c++中含的STL的string容器 #include 是在1988年标准化以后,的演变。 总之你记住一句话:与是完全不同的两个东西。 =======================================================转载 2016-05-28 10:33:03 · 318 阅读 · 0 评论 -
将string转换成char* (转)
来源: http://blog.sina.com.cn/s/blog_786ce14d01014lpr.html string 是c++标准库里面其中一个,封装了对字符串的操作 把string转换为char* 有3中方法: 1.data 如: string str="abc"; char *p=str.data();%这行应更正为char*p=(char*)str.da转载 2016-05-28 10:43:47 · 815 阅读 · 0 评论 -
offsetof' was not declared in this scope
offsetof' was not declared in this scope原创 2016-06-10 16:29:04 · 1191 阅读 · 0 评论