Hey everyone! I'm currently studying C++ at uni, and I could really use some feedback on my assignment code. I'm particularly interested in how readable and well-formatted my code is. While the logic works according to the requirements, I'm open to suggestions on how to improve any parts that might seem redundant or illogical. If you have some time, I'd greatly appreciate any insights! Here's the link to my codebase: [https://github.com/JackInDaBean/voltage-variance-checker]. Thanks so much!
1 Answer
First off, avoid having spaces in your file names – it can cause issues with some programs. Also, try to limit global declarations. It’s better to declare variables right where you need them, especially for loop variables to prevent potential bugs.
Thanks for the advice! I usually don't use spaces, but I guess I slipped up this time. I’ll definitely work on condensing my code into functions more.