13,822
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
#include <string>
#include <cstring>
struct candybar{
string name;
double weight;
int kaluli;
};
int main()
{
candybar snack={"wowo",1.2,100};//这句为什么编译通不过?
string a;
a="my";
char *b="hello";
char *c="world";
b=c;
return 0;
}