C ++,请您能帮我解决这个问题 [英] c++ please can you help me solving this problam

查看:77
本文介绍了C ++,请您能帮我解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给出日期格式为DD MM YYYY的日期,其中YYYY> = 2000,将C ++程序编写到:
1.查找下一个日期(您可能会忽略leap年的特殊情况).
2.计算您在给定日期之前的年龄.
3.检查当年DD MM是否经过相同的日期.如果不算多少天
剩下了.
您的程序必须验证给定的日期,如果无效,则显示适当的消息.
您必须提交:
1.一种MS-Word文档,其中包含5步工程问题解决方法,
适用于上述问题(将此文件命名为hw2_99999.doc,其中99999替换为您的
ID#)
2.一个C ++程序(将此文件命名为hw2_99999.cpp,其中99999替换为您的ID#)来执行
以上任务.该程序必须满足以下条件:
一个.包含必要的注释(注意:在程序顶部包含您的姓名和ID)
b.使用适当的编程样式(例如,空格,缩进,变量命名,常量等)
C.清除输入/输出提示,以帮助用户与程序进行交互.

Given a date of format DD MM YYYY where YYYY >= 2000, write a C++ program to:
1. Find the next date (you may ignore the special case of leap years).
2. Calculate your age up to the given date.
3. Check if the same date DD MM has passed or not in the current year. If not calculate how many days
are left.
Your program must validate the given date and display an appropriate message if it is not valid.
You must submit:
1. A MS-Word document containing the 5-steps Engineering Problem Solving Methodology as it is
applied for the above problem (name this file as hw2_99999.doc where 99999 is replaced by your
ID#)
2. A C++ program (name this file as hw2_99999.cpp where 99999 is replaced by your ID#) to do the
above tasks. The program must satisfy the following:
a. Includes necessary comments (Note: include your Name and ID on the top of the program)
b. Uses proper programming styles (e.g. spacing, indentation, variable naming, constants, …etc)
c. Clear input/output prompts which help the user to interact with the program

推荐答案

好...开始编码,当您陷入具体问题时,请问自己是什么遇到问题.

我们可以为您提供帮助,但这对您毫无用处,因为您没有做应该做的家庭作业.那是...学习.
Well... start coding and when you get stuck in something concrete, ask what you are having problems with.

We could help you, but that would be worthless for you, since you were not doing what you are supposed to do with homeworks. That is... learning.


可能是一条线索会有所帮助:p

尝试查看 SYSTEMTIME CTime CTimeSpan .

就像Neleck对您说的那样,当您陷入困境时pepole会有所帮助.
May be a clue will help :p

Try to look on SYSTEMTIME, CTime and CTimeSpan.

and as Neleck said to you, when you ll get stuck pepole will help.


您似乎还没有真正意识到家庭分配的价值.这是给您的提示:家庭作业非常有价值.如果您必须支付教育费用,请理解:这也许是您学校活动中最有价值的部分,值得您支付. 如果您不自己一个人完成100%的家庭作业,那就像把钱花在辛苦的工作上一样.而且您也不想这么做.

因此,我建议我们再给您一次机会,利用您的学校为您提供的机会.

祝你好运,
—SA
It looks like you did not really got to the idea of the value of home assignment, not yet. Here is a hint for your: home assignments are very valuable. If you have to pay for education, please understand: this is perhaps most valuable part of your school activity worth paying for. If you do not do your home assignment 100% by yourself, this is the same as flushing money down the toiled. And you don''t want it.

So, I suggest we give you another chance to use the opportunities your school gives you.

Good luck,
—SA


这篇关于C ++,请您能帮我解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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