Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 19th, 2009, 03:28 PM
Registered User
 
Join Date: Oct 2008
Location: Lexington, MA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Mult-Dimensional Arrays to Functions C++/CLR

I am attempting to write several math functions for interpolation and integration of time dependent variables. The functions will require inputs of 2-dimensional arrays of the time, and the dependent variable. Its easy in C++ by I need them in VC++/CLR.

Ivor Horton's Beg VC++ 2005, has an example Ex4_15, that shows how to formulate a multidimensional array in main(), and also his Ex5-15 example shows how to pass a single dimensional array as a function argument, but I have been unable figure out how to pass a two-dimensional argument to a function in VC++/CLR. Anyone have any ideas?

Thanks,

LarryC
  #2 (permalink)  
Old April 21st, 2009, 11:13 AM
Registered User
 
Join Date: Oct 2008
Location: Lexington, MA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile problem solved!

I found an excellent web site, www.voidnish.com which had an article entitled "Arrays in C++/CLI" that showed how to initialize double arrays as function arguments, which is actually what I was looking for.

Larry
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
plotting 2 different 1 dimensional arrays versus each other sanderson Visual Basic 2008 Essentials 3 February 13th, 2009 07:00 AM
Plotting 2 1-dimensional arrays sanderson Visual Basic 2008 Essentials 0 January 15th, 2009 04:29 PM
muti dimensional arrays help:( chris1012 Java Basics 6 December 22nd, 2007 12:11 PM
1 and 2 dimensional arrays jeff_cafm VB.NET 2002/2003 Basics 1 April 26th, 2006 05:02 PM
1 and 2 dimensional arrays jeff_cafm VB.NET 1 April 24th, 2006 03:05 PM



All times are GMT -4. The time now is 01:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.