📄 pr05021.cpp
字号:
////////////////////////////////////////
// File Name: pr05021.cpp
////////////////////////////////////////
#include <iostream>
// Employee record.
struct Employee
{
int emplno;
float wage;
};
// Array of Employee records.
Employee emps[] =
{
{ 1, 10.17 }, // #1 initialized.
{ 2, 15.50 }, // #2 initialized.
{ 3, 13.00 } // #3 initialized.
};
////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
int i;
for (i = 0; i < 3; i++)
std::cout << emps[i].emplno << ' '
<< emps[i].wage << std::endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -