📄 delete.cpp
字号:
#include <iostream.h>
void main(void)
{
char *array = new char[256];
char *target, *destination;
int i;
target = new char[256];
for (i = 0; i < 256; i++)
{
array[i] = 'A';
target[i] = 'B';
}
delete array;
destination = new char[256];
for (i = 0; i < 256; i++)
{
destination[i] = target[i];
cout << destination[i] << ' ';
}
delete target;
delete destination;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -