Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-22-2005, 07:39 PM   #1
Beta Member
 
Join Date: Mar 2005
Posts: 1
Default c++ pass 2d array into function

Hi I am getting this error with my code as I try to pass a 2d array into a function :

mymain.cpp:173: error: cannot convert `float (*)[((dimensions - 1) + 1)]' to `float**' for argument `1' to `float objfunc(float**)'])'

The code is as follows:

http://cpp.sourceforge.net/?show=4356

The lines 0030, 173 and 282 are where the problems are,

If anyone could be of any help i woule be extremely gratefull as I have been stuck on it for quite a while now. thanks in advance.
__________________

tw0nk is offline   Reply With Quote
Old 03-23-2005, 01:46 AM   #2
BSOD
 
Join Date: Mar 2005
Posts: 39
Default Re: c++ pass 2d array into function

try google!
__________________

thrustan is offline   Reply With Quote
Old 03-25-2005, 12:02 PM   #3
Daemon Poster
 
Tulsileaf's Avatar
 
Join Date: Jul 2004
Posts: 1,249
Default Re: c++ pass 2d array into function

where did it get the ((dimensions - 1) + 1) thing from?
Tulsileaf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:08 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0