编辑代码

#include <stdio.h>
typedef struct {
    unsigned char  device_id[32];         
    unsigned char  password[32];         
    unsigned char  host[32];           
    unsigned char  model_id[32]; 
} test_data_t;

int main()
{
   /* 我的第一个 C 程序 */
    printf("Hello, World! \n");
	test_data_t temp;

    strcpy(temp.host,"halo");
	
	printf("device_id : %s\r\n",temp.device_id);
	printf("password : %s\r\n",temp.password);
	printf("host : %s\r\n",temp.host);
	printf("model_id : %s\r\n",temp.model_id);
   
   return 0;
}