![]() |
| ||
| Passing Arrays to function in Visual C++ This seems like a simple task but the microsoft visual c++ 6.0 compiler is giving me a problem with this. Its complaining about the lines where i try to use a passed array such as "fin[i]=0". Its giving this error for the following code. "error C2109: subscript requires array or pointer type" void main() << moderator edit: added [code][/code] tags >> |
| ||
| Re: Passing Arrays to function in Visual C++ nevermind i figured out the problem. if ((fin[j]==false) && (nd[j] < ava[1])) I changed ava to an int instead of an array of ints. So it should look like this: if ((fin[j]==false) && (nd[j] < ava)) thanks anyways.. |
| ||
| Re: Passing Arrays to function in Visual C++ Quote:
|
| All times are GMT -4. The time now is 5:20 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC