path under linux and window

时间:2020-01-01 11:54:52   收藏:0   阅读:90

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 /

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!