2016第三章函数和函数模板.pptVIP

  • 1
  • 0
  • 约7.07千字
  • 约 27页
  • 2016-12-04 发布于北京
  • 举报
2016第三章函数和函数模板

/41 第3章 函数和函数模板 3.1 函数的声明和调用 3.2 函数的参数及其传递方式 3.3 深入讨论函数返回值 3.4 内联函数 3.5 变量的存储属性 3.6 函数重载 3.7 函数模版 * /41 * Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 3.2.1 传数值 3.2.2 传地址值 3.2.3 传引用方式 3.2.4 默认参数 3.2.5 使用const保护数据 * /41 * Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 【例3.1】传数值不会改变原来值的例子 #include iostream #include string using namespace std; void swap(string, string); //函数参数采用传数值方式 void main() { string str1(现在),str2(过去); swap(str1, str2);

文档评论(0)

1亿VIP精品文档

相关文档