C++中的menset和memcpy介紹

 1。void *memset(void *s,int c,size_t n) 總的做用:將已開闢內存空間 s 的首 n 個字節的值設爲值 c。 2。例子 #i nclude #i nclude main(){ char *s="Golden Global View"; clrscr(); memset(s,'G',6); printf("%s",s); getchar(); return 0;
相關文章
相關標籤/搜索