commit 2025-10-13 10:55 add ZCLinkPointEx ZCppMain/ZtCObjList.H

This commit is contained in:
2025-10-13 10:55:10 +09:00
parent 17e25f8f5d
commit 870b50066d
3 changed files with 411 additions and 101 deletions

View File

@ -357,6 +357,32 @@ namespace ZNsMain
VO_ListOfStr11.IterElemLink(&ShowNode1_3, ZftMCP(VI_CallCnt=0));
VO_ListOfStr11.Rotate();
cout<<"# list11 Rotate() ################"<<endl;
VO_ListOfStr11.IterElemLink(&ShowNode1_3, ZftMCP(VI_CallCnt=0));
cout<<"*****************************************************"<<endl;
cout<<"# list11 IterElemLinkRev() ################"<<endl;
VO_ListOfStr11.IterElemLinkRev(&ShowNode1_3, ZftMCP(VI_CallCnt=0));
cout<<"*****************************************************"<<endl;
typedef CStringList1::iterator iterator1 ;
typedef CStringList1::ZCLinkPointEx iteratorEx1;
iterator1 VO_Iter1 = VO_ListOfStr11.end();
iteratorEx1 VO_IterEx1 = VO_ListOfStr11.end();
int VI_LoopCnt = 0;
while(VO_Iter1>0)
{
cout<<"(by iter)"<<++VI_LoopCnt<<" : "<<*VO_Iter1<<endl;
--VO_Iter1;
}/*
while(VO_Iter1>0)*/
return 0;
}/*
static int Main(int AI_ArgCnt=0, char* APP_ArgVal[]=0)*/
@ -412,8 +438,8 @@ int main(int AI_ArgCnt, char* APP_ArgVal[])*/
■ Linux 컴파일
g++ -std=c++98 -o ZtCObjList_000.exe ZtCObjList_000.cpp -I../ -Wall -Wno-unused-function -Wno-misleading-indentation
g++ -std=c++98 -o ZtCObjList_000_D.exe ZtCObjList_000.cpp -I../ -Wall -Wno-unused-function -Wno-misleading-indentation -D_DEBUG
g++ -std=c++98 -o ZtCObjList_000.exe ZtCObjList_000.cpp -I../ -Wall -Wno-unused-function -Wno-misleading-indentation -Wno-reorder
g++ -std=c++98 -o ZtCObjList_000_D.exe ZtCObjList_000.cpp -I../ -Wall -Wno-unused-function -Wno-misleading-indentation -Wno-reorder -D_DEBUG
sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0