📜  memcpy c++ 用法 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:51.341000             🧑  作者: Mango

代码示例1
#include // or string.h
int main(){
    char a[4],b[]={"hello"};
      memcpy(a,b,strlen(b)*sizeof(char));//destination,source,size*sizeof(type)
      
}