⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpp29.cpp

📁 C++参考书
💻 CPP
字号:

// Coded by plusir -- Dec.28.2002.
// Standard C++ Bible -- (P199-6-29)

#include <iostream>
using namespace std ;

struct Bigone
{
	int serno ;
	char text[1000] ;
} ;

void slowFunc( Bigone ) ;
void fastFunc( Bigone & ) ;

int main()
{
	static Bigone bo = { 123, "This is a BIG structure" } ;

	slowFunc( bo ) ;

	fastFunc( bo ) ;

	return 0 ;
}

void slowFunc( Bigone p1 )
{
	cout << p1.serno << endl ;
	cout << p1.text << endl ;
}

void fastFunc( Bigone &p1 )
{
	cout << p1.serno << endl ;
	cout << p1.text << endl ;
}

⌨️ 快捷键说明

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