Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2005
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2009, 03:28 PM
Registered User
 
Join Date: Oct 2008
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
 
Old April 21st, 2009, 11:13 AM
Registered User
 
Join Date: Oct 2008
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





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 08:00 AM
Plotting 2 1-dimensional arrays sanderson Visual Basic 2008 Essentials 0 January 15th, 2009 05:29 PM
muti dimensional arrays help:( chris1012 Java Basics 6 December 22nd, 2007 01: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.