By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,663 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,663 IT Pros & Developers. It's quick & easy.

C++ Program Help

P: n/a
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
Share this Question
Share on Google+
10 Replies


P: n/a
"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

P: n/a
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

P: n/a
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

P: n/a
"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

P: n/a
atlanta wrote:
will somebody please do my homework for me.


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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.