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

📄 cpp14.cpp

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

// Coded by plusir -- Dec.27.2002.
// Standard C++ Bible -- (P131-5-14)

#include <iostream>
using namespace std ;

struct Date
{
	int month ;
	int day ;
	int year ;
} ;

struct Employee
{
	int emplno ;
	double salary ;
	Date datehired ;
} ;

int main()
{
	Employee joe = { 123, 35500, { 5, 17, 82 } } ;

	cout 
		<< "Empl #: " << joe.emplno << endl
		<< "Salary: " << joe.salary << endl
		<< "Date hired: "
		<< joe.datehired.month << '/'
		<< joe.datehired.day << '/'
		<< joe.datehired.year << endl ;
    
	return 0 ;
}

⌨️ 快捷键说明

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