diff --git a/ZCppMainTest/ZtCList_000.cpp b/ZCppMainTest/ZtCList_000.cpp new file mode 100644 index 0000000..79f69cc --- /dev/null +++ b/ZCppMainTest/ZtCList_000.cpp @@ -0,0 +1,248 @@ + + +#include +#include "ZCppMain/ZtCStringEx.H" + + +using namespace std ; +using namespace ZNsMain ; + + +namespace ZNsMain +{ + + namespace ZNsExam + { + + template class ZtCExamCList + { + public: + + class CHelpObj + { + public: + + CHelpObj() + { + cout<<"* CHelpObj()"< CStringBase ; + typedef const CStringBase CCStringBase; + + /* 아래 자료형에 대해, CStringBase::Fetch() 호출 여부 실험. + + ZtCList + ZtCList + + */ + typedef ZtCList + CStringList1 ; + typedef ZtCList + CStringList2 ; + + + static void ShowDataInNode(const CStringBase& AR_Data) + { + cout<<"* Data : "< CIntList; + + CHelpObj VO_CHelpObj; + CIntList VO_CIntList; + + VO_CIntList.AddTail(10); + VO_CIntList.AddTail(20); + VO_CIntList.AddTail(30); + VO_CIntList.AddTail(40); + + cout< class ZtCExamCList*/ + + }/* + namespace ZNsExam*/ + +}/* +namespace ZNsMain*/ + + +int main(int AI_ArgCnt, char* APP_ArgVal[]) +{ + return ZNsMain::ZNsExam:: + + ZtCExamCList<>::Main(AI_ArgCnt, APP_ArgVal); +}/* +int main(int AI_ArgCnt, char* APP_ArgVal[])*/ + + +/*//////////////////////////////////////////////////////////////////////////////////////// + +■ cygwin 컴파일 + + // g++ -mno-cygwin -o ZtCList_000.exe ZtCList_000.cpp -I../../my_CPP/CPP_Main/ -I../../my_CPP/CPP_Std/ -D__CYGWIN32__ -D__VISUAL_CPP_VER__=200300 + // g++ -mno-cygwin -o ZtCList_000_D.exe ZtCList_000.cpp -I../../my_CPP/CPP_Main/ -I../../my_CPP/CPP_Std/ -D__CYGWIN32__ -D__VISUAL_CPP_VER__=200300 -D_DEBUG + +■ mingw 컴파일 + + g++.exe -o ZtCList_000_mw.exe ZtCList_000.cpp -I../ -lWs2_32 + g++.exe -o ZtCList_000_mw_D.exe ZtCList_000.cpp -I../ -lWs2_32 -D_DEBUG + + ./ZtCList_000_mw.exe + ./ZtCList_000_mw_D.exe + + + Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest + # date + Sun Aug 24 10:47:09 KST 2025 + + Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest + # g++ --version + g++.exe (Rev2, Built by MSYS2 project) 13.2.0 + Copyright (C) 2023 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + +■ Linux 컴파일 + + g++ -std=c++98 -o ZtCList_000.exe ZtCList_000.cpp -I../ + g++ -std=c++98 -o ZtCList_000_D.exe ZtCList_000.cpp -I../ -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 + Copyright (C) 2019 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ date + Sun Aug 24 00:05:51 DST 2025 + + sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ cat /etc/os-release + NAME="Ubuntu" + VERSION="20.04.6 LTS (Focal Fossa)" + ID=ubuntu + ID_LIKE=debian + PRETTY_NAME="Ubuntu 20.04.6 LTS" + VERSION_ID="20.04" + HOME_URL="https://www.ubuntu.com/" + SUPPORT_URL="https://help.ubuntu.com/" + BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" + PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" + VERSION_CODENAME=focal + UBUNTU_CODENAME=focal + + + [sauron@q381-2657 ZCppMainTest]$ cat /etc/centos-release + CentOS Linux release 7.9.2009 (Core) + + [sauron@q381-2657 ZCppMainTest]$ g++ --version + g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) + Copyright (C) 2015 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +■ 실행 + + ./ZtCList_000.exe + ./ZtCList_000_D.exe + +////////////////////////////////////////////////////////////////////////////////////////*/ diff --git a/ZCppMainTest/ZtCSimList_000.cpp b/ZCppMainTest/ZtCSimList_000.cpp new file mode 100644 index 0000000..779c71f --- /dev/null +++ b/ZCppMainTest/ZtCSimList_000.cpp @@ -0,0 +1,249 @@ + + +#include +#include "ZCppMain/ZtCSimList.H" +#include "ZCppMain/ZtCStringEx.H" + + +using namespace std ; +using namespace ZNsMain ; + + +namespace ZNsMain +{ + + namespace ZNsExam + { + + template class ZtCExamCSimList + { + public: + + class CHelpObj + { + public: + + CHelpObj() + { + cout<<"* CHelpObj()"< CStringBase ; + typedef const CStringBase CCStringBase; + + /* 아래 자료형에 대해, CStringBase::Fetch() 호출 여부 실험. + + ZtCSimList + ZtCSimList + + */ + typedef ZtCSimList + CStringList1 ; + typedef ZtCSimList + CStringList2 ; + + + static void ShowDataInNode(const CStringBase& AR_Data) + { + cout<<"* Data : "< CIntList; + + CHelpObj VO_CHelpObj; + CIntList VO_CIntList; + + VO_CIntList.AddTail(10); + VO_CIntList.AddTail(20); + VO_CIntList.AddTail(30); + VO_CIntList.AddTail(40); + + cout< class ZtCExamCSimList*/ + + }/* + namespace ZNsExam*/ + +}/* +namespace ZNsMain*/ + + +int main(int AI_ArgCnt, char* APP_ArgVal[]) +{ + return ZNsMain::ZNsExam:: + + ZtCExamCSimList<>::Main(AI_ArgCnt, APP_ArgVal); +}/* +int main(int AI_ArgCnt, char* APP_ArgVal[])*/ + + +/*//////////////////////////////////////////////////////////////////////////////////////// + +■ cygwin 컴파일 + + // g++ -mno-cygwin -o ZtCSimList_000.exe ZtCSimList_000.cpp -I../../my_CPP/CPP_Main/ -I../../my_CPP/CPP_Std/ -D__CYGWIN32__ -D__VISUAL_CPP_VER__=200300 + // g++ -mno-cygwin -o ZtCSimList_000_D.exe ZtCSimList_000.cpp -I../../my_CPP/CPP_Main/ -I../../my_CPP/CPP_Std/ -D__CYGWIN32__ -D__VISUAL_CPP_VER__=200300 -D_DEBUG + +■ mingw 컴파일 + + g++.exe -o ZtCSimList_000_mw.exe ZtCSimList_000.cpp -I../ -lWs2_32 + g++.exe -o ZtCSimList_000_mw_D.exe ZtCSimList_000.cpp -I../ -lWs2_32 -D_DEBUG + + ./ZtCSimList_000_mw.exe + ./ZtCSimList_000_mw_D.exe + + + Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest + # date + Sun Aug 24 10:47:09 KST 2025 + + Administrator@q381-2673 UCRT64 /e/my_CPP/ZCpp/ZCppMainTest + # g++ --version + g++.exe (Rev2, Built by MSYS2 project) 13.2.0 + Copyright (C) 2023 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + +■ Linux 컴파일 + + g++ -std=c++98 -o ZtCSimList_000.exe ZtCSimList_000.cpp -I../ + g++ -std=c++98 -o ZtCSimList_000_D.exe ZtCSimList_000.cpp -I../ -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 + Copyright (C) 2019 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ date + Sun Aug 24 00:05:51 DST 2025 + + sauron@q381-2673:/mnt/e/my_CPP/ZCpp/ZCppMainTest$ cat /etc/os-release + NAME="Ubuntu" + VERSION="20.04.6 LTS (Focal Fossa)" + ID=ubuntu + ID_LIKE=debian + PRETTY_NAME="Ubuntu 20.04.6 LTS" + VERSION_ID="20.04" + HOME_URL="https://www.ubuntu.com/" + SUPPORT_URL="https://help.ubuntu.com/" + BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" + PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" + VERSION_CODENAME=focal + UBUNTU_CODENAME=focal + + + [sauron@q381-2657 ZCppMainTest]$ cat /etc/centos-release + CentOS Linux release 7.9.2009 (Core) + + [sauron@q381-2657 ZCppMainTest]$ g++ --version + g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) + Copyright (C) 2015 Free Software Foundation, Inc. + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +■ 실행 + + ./ZtCSimList_000.exe + ./ZtCSimList_000_D.exe + +////////////////////////////////////////////////////////////////////////////////////////*/