Hi Folks,
I am hoping for a little bit of direction. The program below is just a test program to create arrays based on input of two numbers. The numbers are only 0 to 9 in each array. They can only be either even or odd number but not mixed. My issue currently is figuring out how to use a struct and a function that allows me to select each array without duplicating the function 5 times (ie: b3,b4,b5,b6,b7).
Any help will be greatly appreciated.
Thanks Rick
That works great! Much easier than what I was trying to do. I was basically looking for a way for one function to build the 5 different arrays with different sequence of numbers. I never thought of the modulus operator. I have a Looong way to go. LOL
High complexity as this might result with a lot of errors among the code and unless you're using some external tools as checkmarx it might going to be a hard job to detect those.
Make sure you try to decrease the amount of complexity in the code.
Good luck.