struct BOOK2 {
const char * id;
const char *name;
int price;
};
int main() {
BOOK2 book;
book.id = "1001";
book.name = "一千零一夜";
book.price = 20;
printf("编号:%s\n书名:%s\n价格:%d\n", book.id, book.name, book.price);
return 0;
}
Strcpy(char * destination ,const char * source)
为什么strcpy的第二个形参变量一定是const char *类型,谁能解释一下,const char *代表了什么。字符串赋值的时候操作是什么样的