Computing.Net > Forums > Programming > NEED HELP! for this Multidimension

NEED HELP! for this Multidimension

Reply to Message Icon

Original Message
Name: visual77
Date: September 8, 2005 at 08:02:30 Pacific
Subject: NEED HELP! for this Multidimension
OS: windows xp
CPU/Ram: INTEL
Comment:

using visual studio 6 c++

i need help to do this program for a section finder of a book using a multidimensional array

produce a section finder using a multi dimensional array to display the subsection page numbers of any five sections of a reference book in such a format that if a user inputs 5 the program would display

"section 5 comprises

5.1 page 42
5.2 page 56
5.3 page 62
5.4 page 70"

and the content of the book is follows
there are 4 other sections (sections 1,2,3,4 each with 4 page numbers so altogether 5 sections each with 4 page numbers just like this one but too long to write it all down. someone tell me how to write the code for this. And also how to declare the array i am confused in this area.


Report Offensive Message For Removal


Response Number 1
Name: jlyon
Date: September 10, 2005 at 08:33:20 Pacific
Subject: NEED HELP! for this Multidimension
Reply: (edit)

Shall I say "NO".


Report Offensive Follow Up For Removal

Response Number 2
Name: borelli35
Date: September 13, 2005 at 00:22:30 Pacific
Subject: NEED HELP! for this Multidimension
Reply: (edit)

====================================================================
"...someone tell me how to write the code for this. And also how to declare the array i am confused in this area." : First, this sounds awfully demanding for someone asking for help (sorry, just how it reads to me) but more importantly, the only kind of specs that I have seen like this comes from a text book (you know the one I'm talking about...the one your class/course requires). I will help you with this if you first give it an honest attempt, email the code you have tried and then ask specific questions regarding areas you are really stuck on rather than just not wanting to try. i.e. don't ask someone to write the code...ask someone something like "I have code that I tried for initializing the array but for some reason it isn't initializing. Could you look at it and explain what is wrong so I can correct the problem?". This would indicate an honest attempt and the desire to actually learn..."go figure".

John W. Borelli
IT Specialist
Hawkeye Security
borelli35


Report Offensive Follow Up For Removal

Response Number 3
Name: sen (by santanusen_82)
Date: September 13, 2005 at 04:03:12 Pacific
Subject: NEED HELP! for this Multidimension
Reply: (edit)

OK Baby,
I'm not so rude as others. So I'll tell you how to declare the array. There are 5 sections each with 4 page numbers. So the code looks like

#define NO_OF_SECTIONS 5
#define PAGE_NO 4

int section_arr[NO_OF_SECTIONS][PAGE_NO];

May be this will help you. If you still cannot write the rest of the code, then post your problems following this up.

Good luck.

Santanu Sen
National Institute of Technology
Durgapur
India


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: NEED HELP!  for this Multidimension

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge