473,727 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2109
"atlanta" <un************ @hotmail.com> wrote in message
news:e3******** *************** ***@posting.goo gle.com...
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.l earn.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********@eat hlink.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********@eat hlink.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

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

Similar topics

4
2111
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 ***************** ******* ********* ****** ******** ***** ******* etc. the first line reps. the number enterd by user but i am having trouble i can get the first line but am having trouble
34
18251
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 broke....." as they say. Anyway, everything's finally getting replaced by a new set-up, and there is just one program, an Access program running under Windows 95, which we want to change for the most minor of amendments (almost cosmetic). The guy...
5
1552
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 first one was 5 8 3 1 in the new one it should be 1 3 8 5 (print the new list) where's the error in my code and why? #include<stdio.h> #include<stdlib.h>
9
5684
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 of UG students in a college. Also include the functions for searching student information and updating the existing information.
2
3976
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 //Audrey A. Paige //IT315 class Product
4
1631
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 return the radius of the circle. I need to show that the program can display the circles area on the screen. The functions should only calculate the required information, they should not display. All display (printing to the screen) should be done in...
8
2769
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 chooses the number to be guessed by selecting an Integer at random in the range 1–1000. The program then displays the following text in a label: I have a number between 1 and 1000--can you guess my number? Please enter your first guess. A...
1
1602
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: ---------------------------------------------------------------------- This program calculates the average of as many grades you wish to enter. First, enter the number of grades to process: 4
0
8891
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9185
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8103
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.