OOP中的类 [英] classes in OOP

查看:99
本文介绍了OOP中的类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您已被任命为房屋金融公司的首席执行官.大多数操作是手动的.在管理层对C ++的功能知之甚少的时候,管理层希望使操作自动化.
假设以下详细信息,
•员工姓名
•箱号
•城镇
•个人号码
•部门
•基本工资
•综合津贴

必填:
i)为上述
编写C ++类声明 ii)编写适当的函数定义
iii)编写适当的驱动程序(主函数)

You have been appointed the chief manager of housing Finance Corporation. Most of the operations are manual. The management would like to automate the operations at the moment the management knows very little about the power of C++.
Assume the following details,
• Employees names
• Box number
• Town
• Personal number
• Department
• Basic Salary
• Consolidated allowances

Required:
i) Write a C++ class declaration for the above
ii) Write the appropriate function definitions
iii) Write the appropriate driver program (main function)

推荐答案

您的文献告诉您什么?我很确定那里有很好的例子,或者您的班上的教授都有.您记笔记了吗?
What does your literature tell you? I''m quite sure there are good examples given there or by the professor in your classes. Did you take notes?


在这里它不是这样工作的.
这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

尝试一下,告诉您是否遇到问题.
成员将很乐意为您提供帮助.
It does not work like this here.
Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


这篇关于OOP中的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆