473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C++ Program Help

this is a simple C++ program to write.
"Write a complete and functioning structured program that successfully
compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the
numbers, print them forward and backward."
i dont know How to write C++.
how is this writen and done?
please help,
-a**************@hotmail.com
Jul 22 '05 #1
10 2046
"atlanta" <un************@hotmail.com> wrote in message
news:e3**************************@posting.google.c om...
this is a simple C++ program to write.
"Write a complete and functioning structured program that successfully compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the numbers, print them forward and backward."
i dont know How to write C++.


Sounds like a homework assignment. Why don't you get an introductory
C++ book and work through it. If you get stuck, post to this group.

Jonathan
Jul 22 '05 #2
atlanta wrote:
this is a simple C++ program to write.
"Write a complete and functioning structured program that successfully
compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the
numbers, print them forward and backward."
i dont know How to write C++.
how is this writen and done?
please help,
-a**************@hotmail.com


If your instructor assigned this, ask the instructor.
Perhaps the instruction wasn't delivered properly.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 22 '05 #3
un************@hotmail.com (atlanta) wrote:
this is a simple C++ program to write.
If it's so simple, then why are you asking us? :-)

"Write a complete and functioning structured program that successfully
compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the
numbers, print them forward and backward."


Let's take this one step at a time... First write a complete and
functioning structured program.

Post your code so we can critique it.
Jul 22 '05 #4
"Daniel T." <po********@eathlink.net> wrote in message news:<po******************************@news02.east .earthlink.net>...
un************@hotmail.com (atlanta) wrote:
this is a simple C++ program to write.


If it's so simple, then why are you asking us? :-)

"Write a complete and functioning structured program that successfully
compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the
numbers, print them forward and backward."


Let's take this one step at a time... First write a complete and
functioning structured program.

Post your code so we can critique it.


it is my homework.
i dont know C++. it is not simple for me. in fact, it's hard to me.
will somebody please do my homework for me.
Jul 22 '05 #5
atlanta wrote:
will somebody please do my homework for me.


Hey, at least he's honest...
Jul 22 '05 #6
atlanta wrote:

"Daniel T." <po********@eathlink.net> wrote in message news:<po******************************@news02.east .earthlink.net>...
un************@hotmail.com (atlanta) wrote:
this is a simple C++ program to write.
If it's so simple, then why are you asking us? :-)

"Write a complete and functioning structured program that successfully
compiles on Visual C++ 6,
that uses two-dimensional array (5x5) that stores numbers. Read in the
numbers, print them forward and backward."


Let's take this one step at a time... First write a complete and
functioning structured program.

Post your code so we can critique it.


it is my homework.
i dont know C++. it is not simple for me. in fact, it's hard to me.


I can't imagine an instructor giving this as the first assignment.
So there must be something in this assignment you *can* do.
will somebody please do my homework for me.


No. We will help you in the parts you don't understand.
But we won't write it from scratch.
--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #7
ATL
everything i wrote on the message board is the whole assignment my pro
gave me.
it is my #1 assignment. the assignment is a review before my class
get into the Core of C++ Data Structures. i should know how to do the
assignment but i dont. i am trying to catch-up my reading C++ books.
reading takes up most of my time and programming takes up all of my
time. For me knowing the vocab. & knowing how to read a program is
more important than spending my whole time compiling and debuggin
program. if i focus on studying the materials less time programming,
i can pass my class with a high letter grade 'B'. instead of barely
making a 'C' - cause programming takes up a lot of time. then the
programs only count 10% of my grade.
i am lookin for someone to help do my assignment. it's i for a
special cause.
i do learn a lot when somebody helps another person in need.

helping out a person in need is the best thing you can do for your
community.
Jul 22 '05 #8
ATL writes:
everything i wrote on the message board is the whole assignment my pro
gave me.
it is my #1 assignment. the assignment is a review before my class
get into the Core of C++ Data Structures. i should know how to do the
assignment but i dont. i am trying to catch-up my reading C++ books.
reading takes up most of my time and programming takes up all of my
time. For me knowing the vocab. & knowing how to read a program is
more important than spending my whole time compiling and debuggin
program. if i focus on studying the materials less time programming,
i can pass my class with a high letter grade 'B'. instead of barely
making a 'C' - cause programming takes up a lot of time. then the
programs only count 10% of my grade.
i am lookin for someone to help do my assignment. it's i for a
special cause.
i do learn a lot when somebody helps another person in need.

helping out a person in need is the best thing you can do for your
community.


I take it that "#1 assignment" means first assignment. I agree with what
Karl Heinz said upstream. If that be true you are in a hopeless situation.
You should be in a salvage mode and you should investigate what you can do
to get out of your dilemma. Investigate the penalties for incomplete and
what you can do to minimize the damage to your GPA. It seems unlikely that
you can do a gracious withdraw at this time of year.

When you mention "review", it sounds like this might be a data structures
class and you have had a preceding course, in which you learned virtually
nothing. Is this possible?
Jul 22 '05 #9
ATL wrote:

everything i wrote on the message board is the whole assignment my pro
gave me.
it is my #1 assignment. the assignment is a review before my class
get into the Core of C++ Data Structures.
The problem is, that if you don't know even the basics of how to start
this program (I am not talking about the problems involved with a '2D'
array, but about main(), for loops, doing input, doing output, writing
functions, using functions, passing parameters, managing scope etc.) you
are missing at least 5 to 10 (important) C++ lessons.
i should know how to do the
assignment but i dont. i am trying to catch-up my reading C++ books.
reading takes up most of my time and programming takes up all of my
time. For me knowing the vocab. & knowing how to read a program is
more important than spending my whole time compiling and debuggin
program.
Then you are in the situation: I have read lots of materials about
how to drive a bicycle. At the moment I try to participate in the
local bike race, can anybody help me to get onto this damned bike
without falling down immediatly.
if i focus on studying the materials less time programming,
i can pass my class with a high letter grade 'B'. instead of barely
making a 'C' - cause programming takes up a lot of time.
Programming at this stage is mostly practice. Practice, practice
and once again practice. There is only one way to get that practice:
By doing it!
then the
programs only count 10% of my grade.
i am lookin for someone to help do my assignment.
Then you would pass with a 'B' and are not able to even do one
of the simpler C++ programs. Do you think this is fair?
it's i for a
special cause.
i do learn a lot when somebody helps another person in need.

helping out a person in need is the best thing you can do for your
community.


Every C++ program starts with writing:
int main()
{
return 0;
}
compile that, link it and let it execute (it's a boring program,
I know, but it's the simplest program you can do AND it is the
starting point for each and every C++ program).

What was the thing you need to do? Store some numbers in a 5*5 array.
Forget about the array at the moment. Lets do something simpler.
Can you input a single number and output that, even if we
assume that no error checking is needed and we can trust the
user not to enter garbage?

You should come up with something like this:

#include <iostream>

using namespace std;

int main()
{
int i;

cout << "Enter a number: ";
cin >> i;

cout << "You entered : " << i << "\n";

return 0;
}

If you have any problems with that, then you are in serious
troubles.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #10
at*************@hotmail.com (ATL) wrote in message news:<c8**************************@posting.google. com>...
everything i wrote on the message board is the whole assignment my pro
gave me.
it is my #1 assignment. the assignment is a review before my class
get into the Core of C++ Data Structures. i should know how to do the
assignment but i dont.
Why not? From what you've written below I see that you've just not
paid enough attention to your teacher (hey I do that too, but I don't
ask for ppl to do my HW)
i am trying to catch-up my reading C++ books.
reading takes up most of my time and programming takes up all of my
time. For me knowing the vocab. & knowing how to read a program is
more important than spending my whole time compiling and debuggin
program.
No... You can learn vocabulary easily. Once you learn vocabulary you
automatically learn how to read the program. Compiling comes next, but
requires some more effort.

If you're not willing to study at all, why do you attend that class
anyway?

You MUST learn how to compile and debug.
if i focus on studying the materials less time programming,
i can pass my class with a high letter grade 'B'. instead of barely
making a 'C' - cause programming takes up a lot of time. then the
programs only count 10% of my grade.
So all you care about is the grade?
i am lookin for someone to help do my assignment. it's i for a
special cause.
What special cause? Someone waste their time to make a program to you
so you can say "I made it" and get a B or an A? Yeah THAT'S special
i do learn a lot when somebody helps another person in need.
Weird
helping out a person in need is the best thing you can do for your
community.


Yeah but helping a person who needs help cuz he was too lazy to get
his ass to study some, is totally nuts.

No-one will help you (at least in c.l.c++)

Not with HW and laziness...
Jul 22 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Josh | last post by:
Howdy i am newb somewhat to programing and i was just for fun trying to compile a program that asks the user for an odd int less than 22 and then returns this ***************** ******* *********...
34
by: John Harrison | last post by:
An odd confession; an odd request; but here's the tale.... My company has a few PC systems which we have used for about 7 years and not updated - we've "made do", and besides, "if it ain't...
5
by: Nikola | last post by:
I need to write a program that generates 5 random numbers and puts them into a linked list. (Print the list) From that list it forms another list in a way if the arrangement of elements in the...
9
by: santoshp80 | last post by:
Hi All, Can anybody help me for these programs. I need to submit ny assignments. 1) Write a C++ program to generate Lucas series 2) Write a C++ program to accept the student's information...
2
by: zaidalin79 | last post by:
Here is my Inventory program for my Java class.... //Inventory.java //Class created to store item information for Inventory purposes //Created November 15, 2006 //Modified November 29, 2006...
4
by: saggie | last post by:
I cannot write this C program that uses a function to calculate the area of a circle, witha circle's circumference. This function (findArea) should call a second function (findRadius) which will...
8
by: Jrezak321 | last post by:
Hi I was wondering if anyone could help me with this homework problem of mine? I need to create a program that does this: Write a program that plays “guess the number” as follows: Your program...
1
by: Sleepwalker817 | last post by:
Hello, I am trying to create a program that is supposed to calculate and print the average of several grades entered by the user. The output is supposed to look something like this:...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.