I’m halfway through chapter one of this book and I’m doing the exercises. My programs work as far as I can tell but they don’t look like the ones in the answer book. What can I do to intuit the right way to write these programs?
learn by doing and by seeing what works and what doesn't
Find the solution manual and look at the difference between your implementation and theirs>but I can’t find the solution manual Then ask jeetGPT or Claude to be your TA and look over your solution to a given problem
>>109886866I have the book
>>109886854>What can I do to intuit the right way to write these programs?only experience will teach you thatgood code needs to be legible, modular, efficientthe rest is personal preferences
>>109886854>they don’t look like the ones in the answer book.just assuming from the way youre analysing your results its probably best if you choose a different language as your first where you can easily focus on turning your ideas to code and see your changes happen quickly. c was designed alongside an operating system so some of features the book might demonstrate to you may not make sense to you or might be too verbose for the kind of software youre looking to create, you could try something like python or lua maybe?