[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #3 from limcod/16update
Browse files Browse the repository at this point in the history
引用遗漏
  • Loading branch information
Nagi-ovo committed Oct 24, 2023
2 parents 481a774 + aed55e6 commit 1c14ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/1-50/16 POINTERS in C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void* prt = nullptr ; // c++11 引入

```cpp
int var = 8;
void* ptr = var;
void* ptr = &var;
*ptr = 10; // 会得到错误,计算机怎么才能将一个值写入void指针里?
```

Expand All @@ -62,7 +62,7 @@ void* ptr = var;

```cpp
int var = 8;
int* ptr = var;
int* ptr = &var;
*ptr = 10;
```

Expand Down

0 comments on commit 1c14ba3

Please sign in to comment.