首页 > Windows开发 > 详细

path under linux and window

时间:2020-01-01 11:54:52      阅读:89      评论:0      收藏:0      [点我收藏+]

1. In Microsoft Windows, the file path uses \  , we need two \\ because 

strPath = "D:\\Program Files\\Microsoft Office\\Office15"

2. In Linux, the file path is 

strPath = "//home //Michael//workspace//hello.cpp" 

the root directory starts /

path under linux and window

原文:https://www.cnblogs.com/sarah-zhang/p/12128396.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!