06_05.cpp
来自「一些C++的课件和实验源代码」· C++ 代码 · 共 27 行
CPP
27 行
// 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 + =
减小字号Ctrl + -
显示快捷键?