Skip to content

Commit

Permalink
Merge pull request forthespada#101 from relaxcn/main
Browse files Browse the repository at this point in the history
修复程序错误-C/C++ 语法,内存管理 13 第二段程序
  • Loading branch information
forthespada authored May 5, 2023
2 parents a99b582 + 2026682 commit 37be021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/notes/03-hunting_job/02-interview/01-02-01-memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<<sizeof(A)<<endl;// 输出 4(32位机器)/8(64位机器);
A a;
Expand Down
2 changes: 1 addition & 1 deletion docs/notes/03-hunting_job/02-interview/01-04-01-STL.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const int& a = 10;

举个例子:

```C++
```cpp
#include <bits/stdc++.h>
using namespace std;

Expand Down

0 comments on commit 37be021

Please sign in to comment.