File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1173,7 +1173,7 @@ catch (bad_cast b) {
11731173#### typeid
11741174
11751175* typeid 运算符允许在运行时确定对象的类型
1176- * type \_ id 返回一个 type\_ info 对象的引用
1176+ * typeid 返回一个 type\_ info 对象的引用
11771177* 如果想通过基类的指针获得派生类的数据类型,基类必须带有虚函数
11781178* 只能获取对象的实际类型
11791179
Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ catch (bad_cast b) {
11801180#### typeid
11811181
11821182* The typeid operator allows determining the type of an object at runtime
1183- * type \ _ id returns a reference to a type \ _ info object
1183+ * typeid returns a reference to a type\ _ info object
11841184* If you want to get the data type of the derived class through the pointer of the base class, the base class must have a virtual function
11851185* Can only get the actual type of the object
11861186
You can’t perform that action at this time.
0 commit comments