Looking for Feedback on My C++ Code Assignment

0
2
Asked By CodeWizard123 On

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

Answered By TechieGuru89 On

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.

CodeWizard123 -

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.