I am going to be making a program that reads in a line and gets up to 6 numbers. The program will eventually solve a a square matrix between 2x2 and 6x6. My question is what errors do I need to look for on the get_numb() function?
I am thinking that the function will have to check character by character to make sure that the individual characters are actual numbers and not a EOF or \n. I will have to also check that there is not more than 6 numbers on a line. I am about a week into programing, so is there anything I need to know to tackle this? You didn't say what the get_numb() function is supposed to do, so it's difficult to try and help you determine what errors you might need to look for. Is this a function that parses an input line and returns an array of numbers, for example? You will need to be more clear.
以上就是C homework, ignore for now (I think I am going repost later with some code)的详细内容,更多请关注web前端其它相关文章!