会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sythage
博客园
首页
新随笔
联系
订阅
管理
2024年8月20日
参数传递
摘要: C++参数传递 1.按值传递 import std; void fun(int number) {number ++;} int main(){ int a = 1; fun(a); cout << n << endl; } 输出:1 这种情况下,函数调用时是copy了a的值在内存中存了一个副本,调
阅读全文
posted @ 2024-08-20 22:35 岁月童话剧
阅读(12)
评论(0)
推荐(0)
编辑
公告