当前位置:网站首页>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 .
边栏推荐
- verilog实现DDS波形发生器模块,可实现频率、相位可调,三种波形
- 企业实施MES系统的关键点详解
- 如何评价科大讯飞AI翻译笔P20系列,值得买吗?
- Rsync method of establishing multi directory module
- What problems should be avoided when using the points mall games for marketing?
- "Xiaodeng" ad domain delegation for operation and maintenance
- Realize inotify and Rsync real-time backup
- tmux设置
- [advanced ROS chapter] lesson 2 custom header and source file encapsulation
- Implementing LDAP proxy service with haproxy + keepalive
猜你喜欢

At least 3 years for learning amplifier?

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

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

WIN10设置自动拨号联网任务,实现开机、断网自动重连

Set up your own website (12)

项目中退出操作

高校如何基于云原生构建面向未来的智慧校园?全栈云原生VS传统技术架构

"Xiaodeng" active directory batch user creation in operation and maintenance

Gstreamer应用开发实战指南(五)

MySQL JSON data types & functions
随机推荐
导航【微机原理】
Explain PBR texture maps
yolov6训练自己的数据记录+yolov5对比测试
verilog实现串口通信发送到数码管
A keepalived high availability accident made me learn it again!
报表交付工程师
Varnish 503 no backend connection – varnish health check
"Xiaodeng" ad domain delegation for operation and maintenance
炒股开户请问哪个券商佣金是最低最安全的
Lexin interview process
Jump to open a new window
"Operation and maintenance department has Xiao Deng" to review and analyze file and folder access rights
Live broadcast preview | PostgreSQL kernel Interpretation Series Lecture 1: overview of PostgreSQL system
如何在 SAP BTP ABAP 编程环境里直接调用 ABAP On-Premises 系统的 RFC 函数
varnish 503 no backend connection – varnish健康检查
知识蒸馏(Knowledge Distilling)学习笔记
THREEJS基础入门
"Xiaodeng" active directory password expiration notification function is available for operation and maintenance
Calibration, correction and world coordinate calculation of binocular stereo vision camera (openCV)
Navigation experiment [microcomputer principle] [experiment]