Computer Science Canada My program won't run because of an error |
Author: | dc116 [ Tue Dec 16, 2008 6:32 pm ] | ||
Post subject: | My program won't run because of an error | ||
Here's my program.
When I run it, it says "argument is the wrong type" ![]() Can anyone help me fix the problem? |
Author: | Tony [ Tue Dec 16, 2008 6:48 pm ] |
Post subject: | RE:My program won\'t run because of an error |
minmax is expecting list: array 1..* of int what is the type of age? |
Author: | dc116 [ Tue Dec 16, 2008 7:46 pm ] | ||
Post subject: | Re: RE:My program won\'t run because of an error | ||
Tony @ Tue Dec 16, 2008 6:48 pm wrote: minmax is expecting list: array 1..* of int
what is the type of age? Ohhhh thanks Tony, turned out all I had to do was take out this line:
and replace all the ageRange with int so the variable age is declared as an integer. |