cpp06.cpp

来自「C++参考书」· C++ 代码 · 共 27 行

CPP
27 行
字号

// Coded by plusir -- Dec.27.2002.
// Stardan C++ Bible -- (P73-3-6)

#include <iostream>
using namespace std ;

void show( int = 1, float = 2.3, long = 4 ) ;

int main()
{
	show() ;
	show( 5 ) ;
	show( 6, 7.8f ) ;
	show( 9, 10.11f, 12l ) ;

	return 0 ;
}

void show( int first, float second, long third )
{
	cout << "first = " << first << endl ;
	cout << "second = " << second << endl ;
	cout << "third = " << third << endl ;
	cout << "------------------" << endl ;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?