游戏开发论坛

 找回密码
 立即注册
搜索
查看: 971|回复: 0

structure的aligment???

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2007-7-25 22:29:00 | 显示全部楼层 |阅读模式
structure的aligment???,?料???如下,我又再次遇到??????了
如果我在struct後面加???macro "__declspec(align(64))",是否可以解?Q??????呢?
有哪本??蚓W站?iT?或提到alignment,??????的?S忻?Q如何?呼?

strcut aa
{
USHORT usStartPosition[6][2];
USHORT usGridWidth;
USHORT usGridHeight;
};

aa bb;
for (int index=0;index<MAX_HORSE_NUM;index++)
{               
    fscanf_s(fp,"%d,%d,%d\n",&tmp,&bb.usStartPosition[index][0],&bb.usStartPosition[index][1]);//?一行???lignment的???,??绊?到usGridWidth的?抵
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-25 16:57

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表