#include <iostream>
#include<memory.h>
using namespace std;
int main()
{
char cards[5];
memset(cards,-1,sizeof(cards));
for(int i=0;i<sizeof(cards);i++){
cout<< cards[i]<<",";
}
cout<<endl;
return 0;
}
void *memset(void *s, int 0或者-1, size_t n);
要初始化的字符数组,填0或-1,要申请多大的内存
void *memset(void *s, int ch, size_t n);
https://blog.csdn.net/just_do_1122/article/details/73370610
https://blog.csdn.net/lyj2014211626/article/details/65481630