pr03006.cpp
来自「c++编程宝典源码及Quincy99编译器 是《标准C++编程宝典》电子工业出」· C++ 代码 · 共 29 行
CPP
29 行
////////////////////////////////////////
// File Name: pr03006.cpp
////////////////////////////////////////
#include <iostream>
// Prototype
void show(int = 1, float = 2.3, long = 4);
////////////////////////////////////////
// The main() function.
////////////////////////////////////////
main()
{
show(); // all three arguments default
show(5); // provide 1st argument
show(6, 7.8); // provide 1st two
show(9, 10.11, 12L); // provide all three arguments
}
////////////////////////////////////////
// Display results of default arguments.
////////////////////////////////////////
void show(int first, float second, long third)
{
std::cout << " first = " << first;
std::cout << ", second = " << second;
std::cout << ", third = " << third << std::endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?