#include <iostream>
using namespace std;
int dog,cat,bird,fish;
void f(int pet){
cout<<"pet id number: "
<< pet << endl;
}
int main()
{
int i,j,k;
cout<<"f():"<<(long)&f<<endl;
cout<<"dog: "<<(long)&dog<<endl;
cout<<"cat: "<<(long)&cat<<endl;
cout<<"bird: "<<(long)&bird<<endl;
cout<<"fish: "<<(long)&fish<<endl;
cout<<"i: "<<(long)&i<<endl;
cout<<"j: "<<(long)&j<<endl;
cout<<"k: "<<(long)&k<<endl;
}
3.4.4 YourPets2
最新推荐文章于 2020-12-21 04:48:54 发布