当前位置:网站首页>Summary of document level symbols under different systems
Summary of document level symbols under different systems
2022-06-29 21:02:00 【I don't know anything Bukit】
One 、 Backslashes and slashes at the file level
Windows File level with backslash \ Express , and Linux、Unix Use slash /.
Why do the same thing have two different representations ? answer : Because in the early days Windows Of DOS Yes, it is / Said parameters , In order to distinguish between , The backslash is used \ Said file . Today, Window The file address bar can be mixed at the same time \ and /, The system will convert it into \; But not all applications support such automatic conversion behavior (cmd No, but powershell Then you can ).
Linux From the beginning / As a system level symbol , Use - and -- Represents a command line parameter .
Two 、 File path in programming
The operating system makes it easy for us to get the file path , Usually in :
- Command acquisition of terminal (Windows,powershell pwd,cmd cd,Linux pwd)
- Explorer
Linux、Unix Next , Copy and paste into the program for use , Hierarchical symbols are consistent with the programming language .
Windows Copy all file paths under will be escape characters \, This has a special meaning in programming languages ( escape ).
You can choose the following methods , The third one requires compiler support (C++11):
Manually modify
\by/
Repeat the escape character
\become\\
Native character escape (R(“…”))
R Processing is that none of the characters in the high-speed compiler are escape characters , The compiler can continue to process .
边栏推荐
- STL tutorial 6-deque, stack, queue, list container
- Initialization of global and static variables
- 每周招聘|DBA数据工程师,年薪35+ ,梦起九州,星河灿烂!
- Simple application and configuration of Rsync
- How to call RFC function of ABAP on premises system directly in SAP BTP ABAP programming environment
- 知识蒸馏(Knowledge Distilling)学习笔记
- Jump to open a new window
- 项目中退出操作
- 路由汇总带来的三层环路-解决实验
- Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms
猜你喜欢

分析影响导电滑环传输信号的因素

计算成像前沿进展

leetcode:238. Product of arrays other than itself

How do I audit Active Directory User account changes?

Uncover the secret! Pay attention to those machines under the membership system!

verilog实现DDS波形发生器模块,可实现频率、相位可调,三种波形

Logical structure and physical structure

Detailed description of gaussdb (DWS) complex and diverse resource load management methods

Verilog realizes serial communication and sends it to the nixie tube

High energy live broadcast, a gathering of celebrities! We invite you to explore bizdevops.
随机推荐
Curl download example
leetcode:370. Interval addition
How to evaluate iFLYTEK AI translation pen P20 series? Is it worth buying?
Implementing LDAP proxy service with haproxy + keepalive
[a must for reptiles - > scrapy framework from black iron to king] first chapter - detailed explanation of 10000 character blog posts (recommended Collection)
Recruit | DBA Data Engineer every week with an annual salary of 35+. Dream of Kyushu and bright stars!
MES系统与ERP如何集成?本文告诉你答案
如何评价科大讯飞AI翻译笔P20系列,值得买吗?
Rsync 建立多目录模块的方法
Xiaomi written test real question 1
Advances in computational imaging
STL tutorial 6-deque, stack, queue, list container
Goahead webserver migration
Recommended books -- walking in the daytime and at night
一颗新的北极星已经升起!
实现inotify配合rsync实时备份
About Effect Size
LeetCode 1. 两数之和
GoAhead 翻译—Active Server Pages
如何从外表判断导电滑环的质量