obsidian/笔记文件/2.笔记/xcode ios出包报错.md
2025-03-26 00:02:56 +08:00

19 lines
1017 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ios
**关于使用尖括号与引号的问题**
在编程或编写代码时,对于包含头文件或文件的指令,通常会遇到使用尖括号`< >`与双引号`" "`的区别。以下是针对这一问题的解答:
1. **尖括号`< >`的用法**
- 主要用于包含标准库的头文件。
- 编译器会在指定的标准库路径中查找这些文件。
- 例如:`#include <iostream>`,用于包含标准输入输出流库。
2. **双引号`" "`的用法**
- 用于包含自定义的头文件或项目中的其他文件。
- 编译器会首先在当前项目目录中查找这些文件。
- 例如:`#include "myHeader.h"`,用于包含名为`myHeader.h`的自定义头文件。
**总结**
使用尖括号还是双引号,取决于你想要包含的文件类型以及文件所在的位置。标准库头文件使用尖括号,自定义或项目文件使用双引号。这是编程中的基本规范,需严格遵循。