Set Path in programming

|
*'\' ( backslash )
- escape sequence (ex. \n : Line Feed(change the line), \r : carriage return)
- the character to express special character (ex. \\ : express the special character '\'(backslash))
- separate directory in 'Windows API' (c:\work\test.dat)
(In Windows programming, you have to write down like this c:\\work\\test.dat. Because \(backslash) is a special character)
(In Windows programming, you can also use /(slash) "c:/work/test.dat")

*'/' : slash
- separate directory in 'Linux' or 'Windows Programming'
- comment in Windows Programming (ex. // : Don't extract this line)


< Ubuntu(Linux) >
*Relative path
- Reference point : working directory
- . : current folder
- .. : upper folder

ex) Eigen/math (Eigen is the name of the folder which located in working directory. 'math' is also the name of the folder.)

*Absolute path
- Write down the path from the first prat of the file system
- The first part of the Ubuntu's file system is '/'

ex) /home/Eigen



<Visual Studio(Windows)>
- In 'Visual Studio', you can use both '/' and '\\'.


'Programming Works' 카테고리의 다른 글

Web sites related with programming  (0) 2011.06.01
Ubuntu's internet setting  (0) 2011.05.20
Installation of Ubuntu on Windows Environment  (0) 2011.05.20
And