結構體中字符串賦值

#include <iostream> using namespace std; struct student { int num; char name[10]; }; int main() { student st; st.num = 10; //st.name = "linjunjie"; //字符串不能用=賦值 strcpy(st.name,
相關文章
相關標籤/搜索