02-18-2010 09:52 AM
I used the last few days to improve my C skills. Now I understand the benefits of structures. I read the file no longer only in an array. I started using fread, to save the file into a structure and divide the data into logical components. In this way I can handle the structural logic then saved a lot better on. By using the structures of the source code is much easier and shorter. Previously I had too many variable names which already have me totally confused.
To deal with hexadecimal numbers, I had completely misunderstood. Now I know that it is only a matter of output. The presentation in tables is still under construction. By saving in a structures have not be all too difficult.
I thank you very much for the nice and competent help.
02-18-2010 10:43 AM
You're welcome! ![]()
Feel free to ask again if you have any further doubt.
If you want some hint on using tables I suggest you to start a new thread as that argument is notably different from the one of this discussion.
02-18-2010 12:27 PM
All new C-learners I have been dealing with (interns, new engineers, etc..) tend to think hexadecimal as a separate data type, and they think an integer must be converted to hex in order to perform correct arithmetic operations.
Well, hexadecimal is just a representation as you already figured out.
This looks like a default learning curve for our minds on this subject 😉