new_copy.cpp
来自「不错书对C++/C程序员很有用的大家不要错过.」· C++ 代码 · 共 24 行
CPP
24 行
#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';
}
destination = new char[256];
for (i = 0; i < 256; i++)
{
destination[i] = target[i];
cout << destination[i] << ' ';
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?