首页 > 其他分享 >C

C

时间:2022-12-30 17:37:33浏览次数:30  
标签: temp int filename char https ptr

 

如何安装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);
}

标签:,temp,int,filename,char,https,ptr
From: https://www.cnblogs.com/qxql2016/p/17015412.html

相关文章