Posted: Fri Jan 20, 2012 7:52 pm Post subject: Function that requires variables
Posted: Today at 7:44 pm Post subject: Turing help for a noob?
Hey everyone,
I'm very new to turing so please let the criticism come along with help! So our class started doing fuctions and arrays in school, and I am just simply perplexed by how I would run an array through a function that has required variables. The question was to find if a number was prime in an array.
My question is: Is there a way to run a function with a variable inside? For example : function primer (var list :array 1..count of int):real... ? Count would be the amount of terms (count of it) inputted by the user prior into the array.
Thanks for reading this,
Sincerely, a very confused child
Sponsor Sponsor
Insectoid
Posted: Fri Jan 20, 2012 7:56 pm Post subject: RE:Function that requires variables