📄 06_05.cpp
字号:
// 06_05.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "stdafx.h"
#include <stdio.h>
char& f1()
{
char* pchar = new char[10000000];
return *pchar;
}
main()
{
char& c = f1();
// 使用
// ...
// 释放内存
char* pc = &c;
delete []pc;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -