// https://www.online-cpp.com/
#include<iostream>
using namespace std;
int main() {
char c1 = '1';
cout << c1 << endl;
char *pc2 = new (&c1) char;
cout << c1 << endl;
c1 = '2';
cout << *pc2 << endl;
return 0;
}
// 1
// 1
// 2
in place new
相關文章
- openGauss In-place-Update儲存引擎儲存引擎
- tkinter中佈局pack、place和grid(八)
- UVA 11080 - Place the Guards(二分圖判定)
- new self()與new static()
- New
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- 理解new和實現一個new
- 簡單介紹PyTorch中in-place operation的含義PyTorch
- new learn
- a new ideaIdea
- a new blog
- How to Add a New Disk new partition in centos7CentOS
- PHP new self()和new static()的區別PHP
- javascript 中function(){},new function(),new Function(),Function 摘錄JavaScriptFunction
- new static ,new self ,self::, $this的一些理解
- 手寫new
- 【轉】placement new
- D - New Friends
- New Year and Days
- new筆記筆記
- new-Xadmin
- My New GoalGo
- JavaScript new 關鍵詞解析及原生實現 newJavaScript
- PHP 的 new static 和 new self 具體有什麼?PHP
- new Handler().postDelayed(new Runnable())是否執行在主執行緒?執行緒
- pytorch執行錯誤:RuntimeError: a leaf Variable that requires grad is being used in an in-place operationPyTorchErrorUI
- 5.9java-newJava
- JavaScript new 運算子JavaScript
- change ^M to new line
- go 陣列 new ()Go陣列
- new CartItem (['amount' => $amount])
- 理解 new 運算子
- School New Competition WP
- milvus日常管理new
- 手寫js new,new的過程到底發生了什麼JS
- Array.sort 演算法原理(插入排序\快速排序in-place實現)演算法排序
- new.target 屬性
- new 了一個 FunctionFunction