fig16_36.cpp
来自「经典vc教程的例子程序」· C++ 代码 · 共 17 行
CPP
17 行
// Fig. 16.36: fig16_36.cpp
// Using memmove
#include <iostream.h>
#include <string.h>
int main()
{
char x[] = "Home Sweet Home";
cout << "The string in array x before memmove is: " << x;
cout << "\nThe string in array x after memmove is: "
<< (char *) memmove( x, &x[ 5 ], 10 ) << endl;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?