edit test.cpp

This commit is contained in:
2021-03-10 11:28:37 +09:00
parent bda29ec4b3
commit f2b9005d64

View File

@ -65,6 +65,59 @@ int main(int ArgiCnt, char** AppArgu)
# CMy3::TypeData=class ZNsMain::ZtCArray<int,int const &,long> # CMy3::TypeData=class ZNsMain::ZtCArray<int,int const &,long>
*/ */
cout<<"# int ="<<typeid(int).name()<<endl;
cout<<"# int*="<<typeid(int*).name()<<endl;
cout<<"# int&="<<typeid(int&).name()<<endl;
int i1= 10;
int* i2=&i1;
int& i3= i1;
cout<<"# int ="<<typeid(i1).name()<<endl;
cout<<"# int*="<<typeid(i2).name()<<endl;
cout<<"# int&="<<typeid(i3).name()<<endl;
typedef int HereInt1;
typedef int* HereInt2;
typedef int& HereInt3;
HereInt1 myi1= 100 ;
HereInt2 myi2= &myi1;
HereInt3 myi3= myi1 ; myi3=123;
cout<<"# HereInt1 ="<< typeid(myi1).name()<<endl;
cout<<"# HereInt2 int* ="<< typeid(myi2).name()<<endl;
cout<<"# HereInt3 int& ="<< typeid(myi3).name()<<endl;
cout<<"# HereInt1 hash="<< typeid(myi1).hash_code()<<endl;
cout<<"# HereInt2 hash="<< typeid(myi2).hash_code()<<endl;
cout<<"# HereInt3 hash="<< typeid(myi3).hash_code()<<endl;
cout<<"# HereInt1 raw ="<< typeid(myi1).raw_name()<<endl;
cout<<"# HereInt2 raw ="<< typeid(myi2).raw_name()<<endl;
cout<<"# HereInt3 raw ="<< typeid(myi3).raw_name()<<endl;
cout<<"# HereInt1 ="<< myi1<<endl;
cout<<"# HereInt2 int* ="<<*myi2<<endl;
cout<<"# HereInt3 int& ="<< myi3<<endl;
/*
# HereInt1 =int
# HereInt2 int* =int *
# HereInt3 int& =int
# HereInt1 hash=3440116983
# HereInt2 hash=2450196518
# HereInt3 hash=3440116983
# HereInt1 raw =.H
# HereInt2 raw =.PAH
# HereInt3 raw =.H
# HereInt1 =123
# HereInt2 int* =123
# HereInt3 int& =123
*/
CListByInt VO_IntList; CListByInt VO_IntList;
CArrayInt VO_IntArr ; CArrayInt VO_IntArr ;