path under linux and window

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 /

Guess you like

Origin www.cnblogs.com/sarah-zhang/p/12128396.html