Hello,
I'm currently working on a project in an engineering design course. Unfortunately, my system requires some programming, something which I haven't focused on at all in my studies.
For one part of my project, I need to write a program in C which I will put on a PLD. The objective of the program is to receive several strings of 1's and 0's (12 digits per string), count the number of 1's in each strings, and then decide which string had the most 1's.
The comparison at the end seems easy enough, but I'm having trouble figuring out how to add up the contents of the string. If anyone could offer me help or guidance on how to implement such a task in C, it would be greatly appreciated.
Thank you in advance.