目录路径 [英] Directory path
问题描述
Pl帮助我解决这个简单的问题。
我使用数组存储文件名,
例如。 char in [] =" filename.bmp" ;;我怎样才能给目录路径带上
的文件名?
Pl help me with this simple question.
I am using an array to store the file name,
eg. char in[] = "filename.bmp"; How can I give the directory path with
the file name?
推荐答案
开2003年10月8日星期三,cjw写道:
On Wed, 8 Oct 2003, cjw wrote:
Pl帮助我解决这个简单的问题。
我使用数组存储文件名,例如。 char in [] =" filename.bmp" ;;如何使用文件名给目录
路径?
Pl help me with this simple question.
I am using an array to store the file name,
eg. char in[] = "filename.bmp"; How can I give the directory
path with the file name?
char in_plus_path [] =" c:\\mystuff \\ filename.bmp" ;;
char unix_style [] =" /mystuff/filename.bmp" ;;
你真的想做什么?
-Arthur
char in_plus_path[] = "c:\\mystuff\\filename.bmp";
char unix_style[] = "/mystuff/filename.bmp";
What are you really trying to do?
-Arthur
In< Pi *************** ********************@unix46.andr ew.cmu.edu> Arthur J. O'Dwyer < aj*@nospam.andrew.cmu.edu>写道:
In <Pi***********************************@unix46.andr ew.cmu.edu> "Arthur J. O''Dwyer" <aj*@nospam.andrew.cmu.edu> writes:
2003年10月8日星期三,cjw写道:
On Wed, 8 Oct 2003, cjw wrote:
Pl帮助我解决这个简单的问题。我使用数组来存储文件名,例如。 char in [] =" filename.bmp" ;;如何使用文件名给目录
路径?
Pl help me with this simple question.
I am using an array to store the file name,
eg. char in[] = "filename.bmp"; How can I give the directory
path with the file name?
char in_plus_path [] =" c:\\mystuff \\ filename.bmp" ;
char in_plus_path[] = "c:\\mystuff\\filename.bmp";
" c:/mystuff/filename.bmp"作为Windows路径看起来好多了。
许多非Unix实现都支持Unix风格的路径,即使
原生约定不同。
Dan
-
Dan Pop
DESY Zeuthen,RZ集团
电子邮件: Da*****@ifh.de
Dan Pop <沓***** @ cern.ch>在消息中写道
news:bm ********** @ sunnews.cern.ch ...
"Dan Pop" <Da*****@cern.ch> wrote in message
news:bm**********@sunnews.cern.ch...
In< Pi ***** ******************************@unix46.andr ew.cmu.edu> Arthur
J. O'Dwyer < aj*@nospam.andrew.cmu.edu>写道:
" c:/mystuff/filename.bmp"作为Windows路径看起来好多了。
许多非Unix实现都支持Unix风格的路径,即使
原生约定不同。
In <Pi***********************************@unix46.andr ew.cmu.edu> "Arthur J. O''Dwyer" <aj*@nospam.andrew.cmu.edu> writes:
"c:/mystuff/filename.bmp" looks much better as a Windows path.
Many non-Unix implementations support Unix-style paths, even if the
native convention is different.
>
这仅适用于Windows的NT / 2000 / XP版本。 95/98 / ME
版本不接受正斜杠。
This works only on the NT/2000/XP versions of Windows. The 95/98/ME
versions do not accept the forward slashes.
这篇关于目录路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!