|
-
December 28th, 2011, 09:44 AM
#1
[RESOLVED] Variable name
I have a bunch of functions sharing the variable names like:
void myfunc(int a, string b);
void func2(int c, string b);
void func3(int a, int c);
But they are not consistent in the way they have been called in functions. But I want to write a general checker for input variables. Something of sort:
if inputs are like this, then they each should have this value. E.g. 'a' should not be greater than 10, 'b' should not be less than 0, etc. I ask this cause within the function call, 'a', 'b', 'c' don't really exist per se but they contain values instead.
How do I implement this?
Thanks guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|