被困在这个血腥的时代。似乎没有简单的方法来做到这一点!
会给予一些帮助,谢谢!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
char (char *s, const int len) {
{
static const char alphanum[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"123456789";
for (int i = 0; i < len; ++i) {
s[i] = alphanum[(sizeof(alphanum) - 6)];
}
s[len] = 0;
memmove(s+pos+1, s+pos, len-pos+1);
s[pos]='-';
puts(s);
}
int main (void)
{
//print the random digits but in the middle need to insert - e.g
//FJ3-FKE
}