#达不到意想中的效果
#include <stdio.h>
#include <winsock.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>
#include <time.h>
int main()
{
char token[] = "";
char token2[] = "";
char token3[] = "";
strcpy(token, "57100316738.");
strcpy(token2, "57100316738.");
strcpy(token3, "57100316738.");
if(strcmp(token, "57100316738.") == 0)
printf("ok/n");
return 0;
}
#可以达到意想中的效果
#include <stdio.h>
#include <winsock.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>
#include <time.h>
int main()
{
char token[50];
char token2[50];
char token3[50];
strcpy(token, "57100316738.");
strcpy(token2, "57100316738.");
strcpy(token3, "57100316738.");
if(strcmp(token, "57100316738.") == 0)
printf("ok/n");
return 0;
}