Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2005

Tip: Looking for answers? Try searching our database.

C++ Multi-Dimensional Pointer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
varunhome@gmail.com - 31 Aug 2005 11:47 GMT
Hi,
I have written an article declaring and using multi-dimensional
pointers in C++. The article tries to address many of the issues
related to multi-dimensional pointers.

Article link:
http://www.geocities.com/varunhostel/TechnicalArticles/PointerArticle/PointerArt
icle_Intro.html


Some of the questions answered in the article are:

Chapter 9: How do I dynamically allocate memory for a 3-dimensional
pointer equivalent to an array a[2][3][4]?
Chapter 6: To what extent can I inter-change pointer and array syntax
in C++?
Chapter 11: How do I decipher very long function pointer declarations?
Is there a standard approach for it?
Chapter 11: What is the difference between the two declarations: int
*ptr[5] and int (*ptr) [5]?

I wanted the above topics in the article to be validated by a more
experienced person. I expect that there could be a few subtle
complications that I have missed out on. Please respond
enthusuastically and e-mail your responses or just post in the forum.

Thanks,
Varun Sud
http://www.geocities.com/varunhostel/
Derrick Coetzee [MSFT] - 06 Sep 2005 23:30 GMT
> I have written an article declaring and using multi-dimensional
> pointers in C++. The article tries to address many of the issues
> related to multi-dimensional pointers.

For what it's worth, since the multidimensional array support in C++ is very
similar to that of C, there are some sections of the comp.lang.c FAQ that
address the same topic:

http://www.eskimo.com/~scs/C-faq/q6.16.html
http://www.eskimo.com/~scs/C-faq/q6.20.html
http://www.eskimo.com/~scs/C-faq/q6.18.html

Also, as a matter of style, I would avoid using the word "chapter" for such
small sections of text (just take out the "Chapter X:" and leave the
headings as section headings) and I would definitely replace your example
images with HTML text, so that they load more quickly, can be adjusted in
size, and can be copied. The easiest way to do this is to copy the code from
Visual Studio, paste it in Microsoft Word, Save as Web Page, and then copy
the HTML from this file to yours. I hope this helps.
Signature

Derrick Coetzee, MCP, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.