丢人啦,不定参数还可以。。。
来源:互联网 发布:肯特州立大学知乎 编辑:程序博客网 时间:2024/05/29 10:31
丢人了,学C到现在,竟然不知道,不定参数还可以这样。。。。。
#include "iostream"using namespace std;int fun(int sum,...){int *temp=∑temp++;for(int i=0;i<sum;i++){cout<<*temp<<" ";temp++;}cout<<endl;return 0;}int main(){int a=1;int b=2;int c=3;char d='c';fun(4,a,b,c,d);return 0;}
0 0
- 丢人啦,不定参数还可以。。。
- 搬家啦 第二天 还可以
- 不定参数
- 不定参数
- 不定参数
- 不定参数
- 不定参数函数调用不定参数函数
- 2014 北京 DevFest 大会可以报名啦,小伙伴们还在等什么
- cdecl、stdcall、fastcall是什么?哪种可以实现个数不定的入口参数,为什么?
- cdecl、stdcall、fastcall是什么?哪种可以实现个数不定的入口参数,为什么?
- cdecl、stdcall、fastcall是什么?哪种可以实现个数不定的入口参数,为什么?
- php5.6及其以上版本有了新特性,函数可以传入不定数目的参数
- cdecl、stdcall、fastcall是什么?哪种可以实现个数不定的入口参数,为什么?
- java不定参数
- 不定参数的应用
- JAVA不定参数探秘
- 不定参数的应用
- 不定参数的应用
- 【HDU】 2243 考研路茫茫——单词情结 AC自动机+矩阵加速
- 纯CSS实现的非常酷的卡通肖像和眨眼动效
- The run destination My Mac 64-bit is not valid for Running the scheme '*****'.
- 黑马程序员 Collection集合
- 《遇见未知的自己》初评
- 丢人啦,不定参数还可以。。。
- STL链表之插入元素(list)
- Ajax系列之三:UpdatePanel
- 安装chromium web browser
- mysql-proxy主从搭建读写分离全过程
- .Net视频中台湾计算机术语也大陆的对照
- j2se--异常机制
- Vim操作
- 【Matlab】ColorbaR的修改方法