eidolon

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

结构struct

struct test{

char a[10];

int b;

}abc = {"abcef",5};

记录一下,结构体的赋值可以按位来赋值,如果结构后边的}后没分号,可以接写结构体变量名,并赋值。

Code
Code
Code
Code
Code
posted on 2008-09-09 16:17  eidolon.fox  阅读(143)  评论(0)    收藏  举报