使用数组对行和列进行C ++编程 [英] C++ programming using array for rows and column

查看:145
本文介绍了使用数组对行和列进行C ++编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请为我的工作分配您的帮助.

编写具有以下性能规格的C ++程序.

1.提示用户输入整数.
2.生成从1到20的给定数字的倍数.倍数将使用4行和5列进行排列.

请在适当的地方添加注释.

Plese I need your help for my assignment.

Write a C++ program with the following performance specifications.

1. Prompt the user for an integer number.
2. Generate multiples of the given number starting from 1 to 20. The multiples will be arranged using 4 rows and 5 columns.

Please add comment where applicable.

推荐答案

:)
它在这里不能这样工作.抱歉,这里没有快速提问.这听起来像是您的大学项目/作业,您应该付出一些努力.

我们希望您花一些时间来解决您面临的问题,然后再花一些时间来提出问题,同时在此处发布.

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

试试看,告诉他们是否遇到问题.
成员将非常乐于提供这样的帮助.
:)
It does not work like this here. I am sorry but there is no quick question here. This sounds like your college project/assignment, you should put some effort.

We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting 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.


正如Sandeep解释的那样,您在这里将无法获得帮助...

您应该开始设计应用程序...然后逐步实现它...

所以:

1.了解如何从用户那里获取数据以及如何向他/她显示信息. ( cin cout 将为您提供帮助).
2.将需要一些计算(您将必须学习如何进行计算).准备那个逻辑.
3.行和列...我想在一个非常基本的练习中,您将不必创建GUI,因此假设您被要求将值存储在4x5数组中.因此,在这种情况下,您应该学习如何声明以及如何使用数组.

通过这些步骤,您将以比现在预期的更少的速度运行所有内容.

请记住,您将要面对的问题有解决方案,并且这里有很多人会帮助您解决问题.无论如何,这里没有人愿意做作业.尝试做.一旦您遇到特定的问题,请再来一次,我们将为您提供帮助.

祝你好运!
As Sandeep explains, you won''t get help that way here...

You should start designing the app... then implementing it little by little...

So:

1. Learn how to get data from the user and how to show info to him/her. (cin and cout will help you).
2. Some calculations will be needed (you''ll have to learn how to make them). Prepare the logic of that.
3. rows and columns... I guess that in a so basic exercise you won''t have to create a GUI so I''m assuming that you are being asked to store the values inside a 4x5 array. So if that is the case you should learn how to declare and how to work with an array.

With those steps you will have everything running in less than what you expect now.

Keep in mind that the problems that you will face have solution and that plenty of people here will help you solving them. Anyway, noone here will want to make your homework. Try to do it. Once you will face specific problems come again and we will help.

Good luck!


您(幸运的是)您的任务很简单.
请至少向我们展示一些努力:尝试编码,当您陷入困境时,请在此处提出特定问题.
Yours is (luckily) a very simple task.
Please show us, at least, some effort: try yourself coding, and when you''re stuck ask here specific questions.


这篇关于使用数组对行和列进行C ++编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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