//18结构体的赋值 //结构既然是一种数据类型,那么我们就可以象变量那样进行赋值操作,不过前提是必须两个结构都是同类型 /*#include <iostream> using namespace std; struct people { double weight; double tall; }; int main() { people Mick = {111.1, 99.9}; people Jack = {222.3,55.4}; cout<<Mick.tall<<" "<<Mick.weight<<endl; cout<<Jack.tall<<" "<<Jack.weight<<endl; Mick = Jack; cout<<Mick.tall<<" "<<Mick.weight<<endl; cout<<Jack.tall<<" "<<Jack.weight<<endl; return 0; } */