我申明了两个结构
public class a
{
String tile;
Double price;
}
public class b
{
String tile;
Double price;
}
我申明了两个实例:
a aa;
b bb;
我要将aa的内容拷贝到bb中,应如何实现?
bb = aa,还是有向Vc 中有memcopy函数.
...全文
874打赏收藏
结构拷贝
我申明了两个结构 public class a { String tile; Double price; } public class b { String tile; Double price; } 我申明了两个实例: a aa; b bb; 我要将aa的内容拷贝到bb中,应如何实现? bb = aa,还是有向Vc 中有memcopy函数.