修改笔误
Srudent -> Student
This commit is contained in:
parent
9940049f8f
commit
882d77d2e9
@ -76,7 +76,7 @@ struct Student {
|
|||||||
};
|
};
|
||||||
Student(){}
|
Student(){}
|
||||||
Struct Student s; //ok
|
Struct Student s; //ok
|
||||||
Srudent s; //ok
|
Student s; //ok
|
||||||
```
|
```
|
||||||
|
|
||||||
添加同名函数后:
|
添加同名函数后:
|
||||||
@ -87,7 +87,7 @@ struct Student {
|
|||||||
};
|
};
|
||||||
Student(){}
|
Student(){}
|
||||||
Struct Student s; //ok
|
Struct Student s; //ok
|
||||||
Srudent s; //error
|
Student s; //error
|
||||||
```
|
```
|
||||||
|
|
||||||
> 情形二:使用typedef定义结构体别名
|
> 情形二:使用typedef定义结构体别名
|
||||||
|
Loading…
Reference in New Issue
Block a user