如何安装Vsual Studio:
(1) 安装包下载路径:https://visualstudio.microsoft.com/zh-hans/downloads/
(2) 安装指导路径:https://blog.csdn.net/bxy0806/article/details/121439332
判断元素a是否属于集合A:
bool ainA(int j, int a[], int len)
{
int temp = 0;
for (int i = 0; i < len; i++)
{
//printf("%d\ta[i]=%d\n", j, a[i]);
if (j == a[i])
temp = 1;
}
return temp;
}
获取文件路径下的文件名:
void GetFileName(char* path, char* filename)
{
char* ptr = NULL;
ptr = strrchr(path, '\\');
if (!ptr)
return;
memcpy(filename, ptr + 1, strlen(ptr + 1) - 5);
}