#include<iostream> using namespace std; struct

2025-05-15 22:13:12
推荐回答(1个)
回答1:

给C风格字符串这样赋值name="sd"是错误的,用strcpy函数或者分别为name[0]和name[1]赋's'和'd'。