<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>守望者--AIR技术交流 - C/C++基础</title>
    <link>http://www.airmyth.com/forum-45-1.html</link>
    <description>Latest 20 threads of C/C++基础</description>
    <copyright>Copyright(C) 守望者--AIR技术交流</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 22 Jul 2026 10:22:09 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.airmyth.com/static/image/common/logo_88_31.gif</url>
      <title>守望者--AIR技术交流</title>
      <link>http://www.airmyth.com/</link>
    </image>
    <item>
      <title>C++以多态方式处理数组可能会遇到的问题</title>
      <link>http://www.airmyth.com/thread-1461-1-1.html</link>
      <description><![CDATA[今天读《More Effective C++》时遇到一个条款：绝对不要以多态方式处理数组。以前自己也没有注意过，觉得有必要记录下来。
C++是允许通过base class的指针或引用来操作derived class所形成的数组的。但发生的事情可能会令你感到意外。下面举例说明：基类和派生类是这样 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Wed, 03 Jun 2015 07:53:49 +0000</pubDate>
    </item>
    <item>
      <title>AngelScript   介绍</title>
      <link>http://www.airmyth.com/thread-918-1-1.html</link>
      <description><![CDATA[AngelScript，全称是AngelCode Scripting Library，是一个专门为扩展应用程序功能而开发的跨平台的脚本库。它以易于应用程序开发者和脚本开发者使用为目标而设计。
AngelScript的开发者是Andreas Jönsson，2013年7月28日时的最新版本为2.27.0


AngelScript最大的特点 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Tue, 20 Jan 2015 03:26:35 +0000</pubDate>
    </item>
    <item>
      <title>字符串逐字刷新</title>
      <link>http://www.airmyth.com/thread-883-1-1.html</link>
      <description><![CDATA[在做游戏剧情展示的时候遇到一种需求把游戏对话逐字显示给玩家,效果如下:




实现这种效果的方式就是把一个字符串逐个中文取出来刷新到屏幕上,研究了各种编码之后发现UTF8的编码非常简单也很容易逐个/中文/英文/符号读取.首先看看UTF8非常简单的编码方式:

 [*]对于单 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Fri, 16 Jan 2015 06:05:02 +0000</pubDate>
    </item>
    <item>
      <title>C++静态绑定与动态绑定</title>
      <link>http://www.airmyth.com/thread-881-1-1.html</link>
      <description><![CDATA[目前我参与的项目中使用了大量的接口调用,大量的继承(多重继承,多重派生等),其中的大部分都是使用了C++语言的动态绑定特性.既然有动态绑定,哪就相应的肯定有静态绑定,今晚复习了下这个特性.静态绑定与动态绑定静态绑定又名前期绑定(early binding),绑定的是对象的静态类 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Fri, 16 Jan 2015 05:55:19 +0000</pubDate>
    </item>
    <item>
      <title>常读常新C++Primer</title>
      <link>http://www.airmyth.com/thread-878-1-1.html</link>
      <description><![CDATA[由于工作上项目逻辑部分选择用C++实现,在业余时间重新去读了一次 C++Primer,我记得第一次读还是在大三暑假,1000多页的天书搞不懂那时候是怎么看完的.而工作后的这一次 我用了大概前前后后2个月的时间去看.基本也就一天翻20多页的状态.我发现现在很多人很难静下心来把一 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Fri, 16 Jan 2015 05:46:14 +0000</pubDate>
    </item>
    <item>
      <title>多重继承中的动态绑定</title>
      <link>http://www.airmyth.com/thread-877-1-1.html</link>
      <description><![CDATA[C++是一种自由度非常高的语言,特别是面向对象中的动态绑定特性,正确使用这种特性会你写代码非常舒畅.但是错误的使用有时候也很致命.
今天在编写战斗逻辑层代码的时候在释放技能回调的地方使用了C++的多重继承,在一个继承了几个回调基类(技能释放完毕回调,移动完毕回调等 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Fri, 16 Jan 2015 05:43:22 +0000</pubDate>
    </item>
    <item>
      <title>用Vim写C++</title>
      <link>http://www.airmyth.com/thread-833-1-1.html</link>
      <description><![CDATA[(本教程属于小白入门篇,神Vim手请自觉XX)我家的老机器终于对VS2012发起致命性反抗了.在这之前他服务了VS2005,2008,2010,可谓三朝元老,最终在第四朝的时候倚老卖老,以死谏轩辕.可悲可叹可敬!于是我陷入了沉思,从vs2005到FlashBuilder,eclipse,xcode,androidStudio,cocoSt ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Mon, 12 Jan 2015 14:10:10 +0000</pubDate>
    </item>
    <item>
      <title>善于跟编译器学写代码</title>
      <link>http://www.airmyth.com/thread-831-1-1.html</link>
      <description><![CDATA[[*]我如何学习写代码
一直以来我都是从基础书本,从开源代码,从同事批评,从谷歌中改进自己”写代码”的技能.这里说的”写代码”,不是指具体的功能实现 函数调用,而是指一种编码习惯,例如命名习惯,留空习惯,注释习惯,等等在日常”写代码”中息息相关的片段.迄今为止我看 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Mon, 12 Jan 2015 13:26:34 +0000</pubDate>
    </item>
    <item>
      <title>C++中对于const的理解</title>
      <link>http://www.airmyth.com/thread-830-1-1.html</link>
      <description><![CDATA[C++Primer中并没有对const过多的解析,只说明为是一个使变量不可修改的限定符.但是仅仅知道这点对于我来说是远远不够的,const是怎么做到的限制修改?谁在帮const做这个限制?编辑器是怎么实现不可修改的?在认识const之前 我知道C++中唯一不可修改的就是常量,例如:


这个10 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Mon, 12 Jan 2015 13:12:53 +0000</pubDate>
    </item>
    <item>
      <title>引用常见问题</title>
      <link>http://www.airmyth.com/thread-69-1-1.html</link>
      <description><![CDATA[1. 什么是“引用”？申明和使用“引用”要注意哪些问题？
答：引用就是某个目标变量的“别名”(alias)，对应用的操作与对变量直接操作效果完全相同。申明一个引用的时候，切记要对其进行初始化。
引用声明完毕后，相当于目标变量名有两个名称，即该目标原名称和引用名， ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sun, 04 Jan 2015 05:58:27 +0000</pubDate>
    </item>
    <item>
      <title>程序在内存中的分布</title>
      <link>http://www.airmyth.com/thread-68-1-1.html</link>
      <description><![CDATA[在现代的操作系统中，当我们说到内存，往往需要分两部分来讲：物理内存和虚拟内存。从硬件上讲，虚拟空间是CPU内部的寻址空间，位于MMU之前，物理空间是总线上的寻址空间，是经过MMU转换之后的空间。

一般我们所说的程序在内存中的分布指的就是程序在虚拟内存中的存储 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sun, 04 Jan 2015 05:55:27 +0000</pubDate>
    </item>
    <item>
      <title>C++中类的内存分布</title>
      <link>http://www.airmyth.com/thread-67-1-1.html</link>
      <description><![CDATA[如何计算类对象占用的字节数？

一个空类的话1个字节。这是为了保证n个连续空类声明时，变量地址有偏移，防止变量覆盖。 
非空类的话用关键字sizeof计算。
如果手工计算就相当麻烦，光padding就一堆规则了。而且有些额外信息比如虚函数（多个虚函数也只产生一个vptr指针 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sun, 04 Jan 2015 05:51:56 +0000</pubDate>
    </item>
    <item>
      <title>浅析为何要内存对齐</title>
      <link>http://www.airmyth.com/thread-66-1-1.html</link>
      <description><![CDATA[在分析内存对其之前，先简要简要介绍一下ARM处理器是如何进行数据操作的：     ARM是32位处理器，armv4能高效的处理8,16,32位的数据，但是大多数arm处理器直接操作的是32位的数据。地址跳变基数为4字节即4.一次存取数据量为32位。（硬件角度），我们一次取到的32位数据 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sun, 04 Jan 2015 05:46:24 +0000</pubDate>
    </item>
    <item>
      <title>结构体在内存中的对齐规则</title>
      <link>http://www.airmyth.com/thread-65-1-1.html</link>
      <description><![CDATA[一个结构体变量定义完之后，其在内存中的存储并不等于其所包含元素的宽度之和。例一：比如例一中的结构体变量S1定义之后，经测试，会发现sizeof(S1）= 16，其值不等于sizeof(S1.a) = 1、sizeof(S1.b) = 4和 sizeof(S1.c) = 8三者之和，这里面就存在存储对齐问题。    原 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sun, 04 Jan 2015 05:31:04 +0000</pubDate>
    </item>
    <item>
      <title>快速学习C语言四: 造轮子，ArrayList</title>
      <link>http://www.airmyth.com/thread-63-1-1.html</link>
      <description><![CDATA[高级语言里的列表是最常用的数据结构，在C里造个轮子玩玩，C没有泛型，先用int练习。[/backcolor]Collection的ADT一般有hasnext,next，add, remove操作，List一般还加了removeat, insert等，然后Stack有push和pop，Queue有enqueue和dequeue。列表有种实现， ArrayList和 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sat, 03 Jan 2015 06:00:51 +0000</pubDate>
    </item>
    <item>
      <title>快速学习C语言三: 开发环境, VIM配置, TCP基础，Linux开发基...</title>
      <link>http://www.airmyth.com/thread-62-1-1.html</link>
      <description><![CDATA[上次学了一些C开发相关的工具，这次再配置一下VIM，让开发过程更爽一些。 另外再学一些linux下网络开发的基础，好多人学C也是为了做网络开发。[/backcolor]开发环境首先得有个Linux环境，有时候家里机器是Windows，装虚拟机也麻烦，所以还不如30块钱 买个腾讯云，用putt ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sat, 03 Jan 2015 05:55:51 +0000</pubDate>
    </item>
    <item>
      <title>快速学习C语言二: 编译自动化, 静态分析, 单元测试，coredum...</title>
      <link>http://www.airmyth.com/thread-61-1-1.html</link>
      <description><![CDATA[上次的Hello world算是入门了，现在学习一些相关工具的使用[/backcolor]编译自动化写好程序，首先要编译，就用gcc就好了，基本用法如下[/backcolor]helloworld.c是源码，helloworld.o是编译后的可执行文件，运行的话就用 ./helloworld.o就可以了。[/backcolor]但是如果 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sat, 03 Jan 2015 05:49:13 +0000</pubDate>
    </item>
    <item>
      <title>快速学习C语言一: Hello World</title>
      <link>http://www.airmyth.com/thread-60-1-1.html</link>
      <description><![CDATA[估计不会写C语言的同学也都听过C语言，从头开始快速学一下吧，以后肯定能用的上。 如果使用过其它类C的语言，如JAVA，C#等，学C的语法应该挺快的。[/backcolor]先快速学习并练习一些基本的语言要素，基本类型，表达式，函数，循环结构， 基本字符串操作， 基本指针操作 ...]]></description>
      <category>C/C++基础</category>
      <author>破晓</author>
      <pubDate>Sat, 03 Jan 2015 05:41:05 +0000</pubDate>
    </item>
  </channel>
</rss>