#include<bits/stdc++.h> using namespace std; int main(){ //定义 pair //1、pair:存储同学的学号和姓名 pair<int,string> p; p.first = 1000; p.second ="Zhang"; cout<<p.first<<" "<<p.second<<endl; return 0; }