结构体中对字符串的赋值
摘要:
# include <stdio.h># include <string.h> //strcpy()typedef struct { int number; char name[10];} student, *pstudent;student struct_call_by_value (student boy){ boy.number = 16; strcpy(boy.name, "zhliao2"); //这里是对字符串复制 printf ("in function:\n"); printf ("number = &a 阅读全文