commit 2025-10-18 17:29 edit a bit ZCppMainTest/c++_test_006.cpp
This commit is contained in:
@ -103,18 +103,22 @@ namespace ZNsMain
|
|||||||
|
|
||||||
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)
|
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)
|
||||||
{
|
{
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user