commit 2025-10-18 17:29 edit a bit ZCppMainTest/c++_test_006.cpp

This commit is contained in:
2025-10-18 17:29:53 +09:00
parent b5f71d95d2
commit 756b48ae36

View File

@ -105,16 +105,20 @@ namespace ZNsMain
{ {
ZCShowType<int> myShowType1; ZCShowType<int> myShowType1;
ZCShowType<double> myShowType2; ZCShowType<double> myShowType2;
//ZCShowType<"abc"> myShowType3; //error ZCShowType<ZTypLLong> myShowType3;
//ZCShowType<"abc"> myShowType4; //error
const int CI_Var1=10; const int CI_Var1=10;
const int CI_Var2=20; const int CI_Var2=20;
const int CI_Var3=30;
ZtCTest<int>::ZCTypeVar<CI_Var1> myintvar1 ; ZtCTest<int>::ZCTypeVar<CI_Var1> myintvar1 ;
ZtCTest2<int, CI_Var2> myintvar2 ; ZtCTest2<int, CI_Var2> myintvar2 ;
ZtCTest2<ZTypLLong, CI_Var3> myintvar3 ;
cout<<myintvar1.MO_TypeVar<<endl; cout<<myintvar1.MO_TypeVar<<endl;
cout<<myintvar2.MO_TypeVar<<endl; cout<<myintvar2.MO_TypeVar<<endl;
cout<<myintvar3.MO_TypeVar<<endl;
typedef ZtCMiniValChain typedef ZtCMiniValChain