# 参数和返回值的传递方式

- [值作为参数](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/zhi-zuo-wei-can-shu.md)
- [值作为返回值](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/zhi-zuo-wei-fan-hui-zhi.md)
- [引用作为参数](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/yin-yong-zuo-wei-can-shu.md)
- [const引用作为参数](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/const-yin-yong-zuo-wei-can-shu.md)
- [引用作为返回值](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/yin-yong-zuo-wei-fan-hui-zhi.md)
- [指针作为参数](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/zhi-zhen-zuo-wei-can-shu.md)
- [指针作为返回值](https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/zhi-zhen-zuo-wei-fan-hui-zhi.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
