C++ Program Help

A

atlanta

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,
(e-mail address removed)
 
J

Jonathan Turkanis

atlanta said:
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
 
T

Thomas Matthews

atlanta said:
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,
(e-mail address removed)

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
 
D

Daniel T.

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.
 
A

atlanta

Daniel T. said:
If it's so simple, then why are you asking us? :)



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.
 
K

Karl Heinz Buchegger

atlanta said:
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.
 
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.
 
K

Karl Heinz Buchegger

ATL said:
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.
 
C

Chris Mantoulidis

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...
 
O

osmium

ATL said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top