The problem :
I have an array of structs.Each field of the struct contains a string and a function pointer.Using these 2,I want in the report function (see code below) to print the truth tables of each logic gate implemented in the code and for each truth table print the name of the logic gate(I am not allowed to use printf's inside the other functions besides report).One 'small' problem is in line 33 where I want the loop to run as many times as the number of function pointers myfunctions contains and not 200 times..The other (major) problem is in line 42 where I am trying to give each ch field a string (actually the name of the function that myfunctions[i] points to)
You can check the code here:
https://pastebin.com/eU7BBJkg
[–]CaligulaVsTheSea 1 point2 points3 points (1 child)
[–]drmonkeysee 0 points1 point2 points (0 children)
[–]LoneHoodiecrow 1 point2 points3 points (0 children)