• Declare a function

To declare a function without identifying the argument list, you can do it in this way:

void say hello(...);

here, you use three point (...) to indicate that the function have no argument.

  • function overloading

Keep in mind that the signature, not the function type, enables function overloading. For example, the following two declaration are incompatible:

long gronk (int n, float m);   #1 //same signature

double gronk(int n, float m);  #2 //hence not allowed

why, for example, if this is possible:

int hel=0;

float haa=3;

gronk(hel, haa); //which function to use, #1 or #2, it is conflict.

therefore,  C++ doesn't allow you to overload gronk() in this fashion. You can have different return type, but only if the signature are also different, for example:

long gronk(int n, float m);

double gronk(double n, double m);  //now it is allowed

最新文章

  1. 斯坦福第十九课:总结(Conclusion)
  2. jquery 获取元素坐标
  3. 如何进行Monkey Test
  4. socketpair的使用
  5. python之math模块
  6. wget ( download the whole page from the website )
  7. CEOI 2014 wall (最短路)
  8. java面试题—精选30道Java笔试题解答(二)
  9. jsp页面附件上传暂存的处理
  10. 在 .NET中,一种更方便操作配置项的方法
  11. VDSR
  12. map获取数字与int比较
  13. c#无边框窗体移动
  14. 360se打开慢,lsass 过高 , cpu温度上升
  15. .NET 证书加密 存储保存 IIS授权
  16. Confluence 6 为站点启用匿名用户访问
  17. 嵌套的ng-repeat双层循环,内层如何获取外层的$index?
  18. 【layer】关于layer打开就是最大化的使用
  19. HDOJ.1113 Word Amalgamation(map)
  20. Nginx 常用配置模板

热门文章

  1. Oralce 按分隔符把一列转成多行
  2. 1215.1——动态分配内存的补充realloc
  3. 驱动编程思想之初体验 --------------- 嵌入式linux驱动开发之点亮LED
  4. [Netty 1] 初识Netty
  5. Ecstore 2.0 报表显示空白
  6. 用Python设计第一个游戏 - 零基础入门学习Python002
  7. mysql--help不可用
  8. POI3.10 根据Excel模版导出数据测试
  9. CSS开发经验
  10. tar解压错误