Merge pull request #7 from mayerui/master

修改笔误
This commit is contained in:
Francis 2020-03-09 08:09:50 +08:00 committed by GitHub
commit 996fef77a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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定义结构体别名