c语言  结构体

#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
posted @ 2022-08-19 22:54  luoganttcc  阅读(4)  评论(0)    收藏  举报