版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/h84121599/article/details/82116229
测试环境:win10,vs2017
通过相对路径和绝对路径的转换来实现
#include<stdio.h>
#include<stdlib.h>
int main()
{
char buf[200];
_fullpath(buf, ".\\", 200);
printf("%s\n", buf);
}
测试环境:win10,vs2017
通过相对路径和绝对路径的转换来实现
#include<stdio.h>
#include<stdlib.h>
int main()
{
char buf[200];
_fullpath(buf, ".\\", 200);
printf("%s\n", buf);
}