C++以內存對齊原則

首先由一個程序引入話題:ios  1  // 環境:vc6 + windows sp2  2  // 程序1  3 #include <iostream>  4   5  using  namespace std;  6   7  struct st1   8 {  9      char a ; 10      int  b ; 11      short c ; 12 }; 13  14  s
相關文章
相關標籤/搜索