c语言  结构体

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/luoganttcc/article/details/88616587
#include<stdio.h>

#include<string.h>

struct _INFO

{

        int num;

        char str[256];

};

int main()

{

        struct _INFO A;

        A.num = 2014;

        strcpy(A.str,"Welcome to dotcpp.com");

        printf("This year is %d %s\n",A.num,A.str);

        return 0;

}
This year is 2014 Welcome to dotcpp.com

猜你喜欢

转载自blog.csdn.net/luoganttcc/article/details/88616587