欢迎光临
我们一直在努力

C结构体拷贝

两个相同的结构体可以拷贝,但不能清零:struct AA{    int t;};struct BB{    int a;    char b;    int c;    struct AA d;};int main(int argc, char* argv[]){ struct BB xx,yy; //xx=0; xx.a=1;    xx.b=2;    xx.c=3;    xx.d.t=4;    yy=xx; return 0;}在VC6中通过陈佳裕博客/article/detail.asp?id=114">

赞(0)
未经允许不得转载:福利吧|福利社|fuliba » C结构体拷贝

相关推荐

  • 暂无文章