Skip to content

Commit

Permalink
修改笔误
Browse files Browse the repository at this point in the history
Srudent -> Student
  • Loading branch information
mayerui committed Mar 8, 2020
1 parent 9940049 commit 882d77d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions basic_content/struct/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct Student {
};
Student(){}
Struct Student s; //ok
Srudent s; //ok
Student s; //ok
```
添加同名函数后:
Expand All @@ -87,7 +87,7 @@ struct Student {
};
Student(){}
Struct Student s; //ok
Srudent s; //error
Student s; //error
```

> 情形二:使用typedef定义结构体别名
Expand Down Expand Up @@ -225,4 +225,4 @@ int main() {
| 在C结构体声明中不能使用C++访问修饰符。 | public、protected、private 在C++中可以使用。 |
| 在C中定义结构体变量,如果使用了下面定义必须加struct。 | 可以不加struct |
| 结构体不能继承(没有这一概念)。 | 可以继承 |
| 若结构体的名字与函数名相同,可以正常运行且正常的调用! | 若结构体的名字与函数名相同,使用结构体,只能使用带struct定义! |
| 若结构体的名字与函数名相同,可以正常运行且正常的调用! | 若结构体的名字与函数名相同,使用结构体,只能使用带struct定义! |

0 comments on commit 882d77d

Please sign in to comment.