diff --git a/docs/notes/03-hunting_job/02-interview/01-02-01-memory.md b/docs/notes/03-hunting_job/02-interview/01-02-01-memory.md index 2ca370b8f..9df6cce97 100644 --- a/docs/notes/03-hunting_job/02-interview/01-02-01-memory.md +++ b/docs/notes/03-hunting_job/02-interview/01-02-01-memory.md @@ -368,7 +368,7 @@ int main(){ 空类的实例大小就是类的大小,所以sizeof(a)=1字节,如果a是指针,则sizeof(a)就是指针的大小,即4字节。 ```cpp -class A { virtual Fun(){} }; +class A { virtual void Fun(){} }; int main(){ cout< using namespace std;