标签:blog io os 使用 ar sp div c log
#include<iostream> using namespace std; int main() { //memcpy函数 char d[20]; //声明数组 char *str="Hellow word"; memcpy(d,str,strlen(str)); d[strlen(str)]=0; //末尾添加0 表示该字符串结束 cout<<d; getchar(); }
标签:blog io os 使用 ar sp div c log
原文地址:http://www.cnblogs.com/Small-Life/p/4008281.html