FULLPATH.CPP
资源名称:dos_gui.zip [点击查看]
上传用户:wtrl82617
上传日期:2007-01-07
资源大小:187k
文件大小:0k
源码类别:
界面编程
开发平台:
DOS
- #include <stdio.h>
- #include <stdlib.h>
- char buf[_MAX_PATH];
- void main(int argc, char *argv[])
- {
- char a[255];
- scanf ("%s",a);
- {
- if (_fullpath(buf, a, _MAX_PATH) == NULL)
- printf("Unable to obtain full path of %sn",a);
- else
- printf("Full path of %s is %sn",a,buf);
- }
- }