This commit is contained in:
朱毅骏 2021-08-25 10:34:50 +08:00
parent 8cbc966ea9
commit 1e7b8a5647
2 changed files with 5 additions and 1 deletions

View File

@ -50,4 +50,7 @@ add_executable(newplace namespacetest/newplace.cpp)
add_executable(usestock0 class/usestock0.cpp)
add_executable(stock20 class/stock20.cpp)
add_executable(useStock20 class/useStock20.cpp)
add_executable(namessp namespacetest/namessp.cpp)
add_executable(namessp namespacetest/namessp.cpp)
add_executable(string new/string.cpp)
add_executable(placenew new/placenew.cpp)
add_executable(usett extend/usett.cpp)

View File

@ -90,5 +90,6 @@ std::ostream &operator<<(std::ostream &os, const hasDMA &hs) {
//第二种 第二种使用dynamic_cast运算符强制类型转换
os << dynamic_cast<const baseDMA &>hs;
os << "Style: " << hs.style << std::endl;
return os;
}