GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Mar-2005, 23:45
kukuhtw kukuhtw is offline
New Member
 
Join Date: Mar 2005
Posts: 1
kukuhtw is on a distinguished road

How to passing Array in C++


I'm currently using visual studio c++.net to develop QualComm BREW Gaming Applliation,
I have code like below this

CPP / C++ / C Code:
void SimpleBall_DrawScreenBlocks(SimpleBall * pApp)
{
	AEERect rect;
	int irow,icol,nIndexBlocks;
	short	idBlocksIndex;
             int mapBlocks[10][5]={1,1,1,1,1,
			  1,1,0,1,1,				
			  1,1,0,1,1,
	    	                1,1,0,1,1,
			  1,1,1,1,1,
			  1,1,1,1,1,
			  1,1,1,1,1,
			 1,1,1,1,1,
			  1,1,1,1,1,
			  1,1,1,1,1,
			};
	
	boolean bHits;
	idBlocksIndex = 0;
		
	// coding for draw screen below this	

}

I'd like to create method of SimpleBall_ReadMapBlocks that could be passing from method of SimpleBall_DrawScreenBlocks(SimpleBall * pApp), but i don't know how . It could be seen like this

CPP / C++ / C Code:
void SimpleBall_DrawScreenBlocks(SimpleBall * pApp)
{  
	AEERect rect;
	int irow,icol,nIndexBlocks;
	short	idBlocksIndex;
             int mapBlocks[10][5]=SimpleBall_ReadMapBlocks(?????)
}

I don't know to how to create SimpleBall_ReadMapBlocks's method
Last edited by LuciWiz : 16-Mar-2005 at 23:48. Reason: Please insert your C code between [c] & [/c] tags
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 3) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
template comiling problems - need expert debugger! crq C++ Forum 1 01-Feb-2005 21:26
Help passing array data to other function. Parkin_m C++ Forum 7 19-Jan-2005 17:22
Function and Array (w/ reference variables) question brookeville C++ Forum 15 07-Dec-2004 01:11
Speed up C++ code about 3d array! Truong Son C++ Forum 0 16-Mar-2004 21:52

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:28.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.