This was a small section of the assignment; however, I was not seeking help on the assignment. I was seeking help about arrays and using fscanf. The assignment was much more indepth.
This is great! Right after I posted, I tried one more thing. I initialized the array to 0 and everything is now recognized correctly!
I should have done this to begin with...
Thanks for all your help!
Drew
I'm not having a problem with white space. At least I don't I am. The first column is loaded into the array correctly; however, when I check to see if it is an alpha character the few list below are not recognized as characters or integers.
A 232 1150 1302 0 25 150 325 1 10 2006 10 20 alpha =...
I'm loading a 2D array with information from a file. The array loads the data properly; however, locations 9, 10, 12, 13, 17,18, and 19 are not recognized as characters, but the characters print correctly.
File content:
A 232 1150 1302 0 25 150 325 1 10 2006 10 20
B 232 1150 1302 0 25 150 325...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.