阅读背景:

struct中数组成员在外部无法赋值

来源:互联网 
#include <iostream>
#include<cstring>


int main()
{
    using namespace std;

    struct computer
    {
        char brand[20];
        float price;
    }com1 = { "Dell",5000 }, com2;
    cout << "电脑品牌" << com1.brand << ",价格:" << com1.price << endl;
    #include <iostream>
#include<cstring>


int 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: