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

📄 structtest.cpp

📁 c++高级编程代码 c++高级编程代码
💻 CPP
字号:
// structtest.cpp

#include <iostream>
#include "employeestruct.h"

using namespace std;

int main (int argc, char** argv)
{
  // create and populate an employee
  EmployeeT anEmployee;

  anEmployee.firstInitial = 'M';
  anEmployee.middleInitial = 'R';
  anEmployee.lastInitial = 'G';
  anEmployee.employeeNumber = 42;
  anEmployee.salary = 80000;

  // output the values of an employee
  cout << "Employee: " << anEmployee.firstInitial << 
    anEmployee.middleInitial <<
    anEmployee.lastInitial << endl;
  cout << "Number: " << anEmployee.employeeNumber << endl;
  cout << "Salary: $" << anEmployee.salary << endl;

  return 0;
}

⌨️ 快捷键说明

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