a_skeleton_03
<Banned>
- 29,948
- 29,763
Oh I knew that I was just lost on trying to make any headway at all not even trying to run it yet.You're missing a lot of semicolons, Tenks only posted pseudo code
He will not luckily.My only critique is there's not much input validation, I don't know if an intro to programming professor would knock you for that
My (fairly tiny) nitpick would be the usage of "break". The way you used it should be avoided. A single exit point in a loop is better for readability IMO.What do you guys think about my program though? Too crude? Just efficient? Some crazy memory leak?
It's already submitted for grade so this is the point of learning for me.
After its all done I must say that I would never willingly code on demand for a job or class. I might try to play around with stuff though now that I have half of a grasp on it.
Yeah probably not elegant. I needed a way out without introducing a ton more lines.My (fairly tiny) nitpick would be the usage of "break". The way you used it should be avoided. A single exit point in a loop is better for readability IMO.
Look at how tuco's code exits the loop. That's more clear to read through. Also the brain dead moment? Welcome to writing code!Yeah probably not elegant. I needed a way out without introducing a ton more lines.
Funny story I had it done the following way and it took me a bit to find out why I was losing the information from the last person entered.
if (more == 0) break;
x++;
Well of course it wasn't working right because it was breaking before it could increment. Total brain dead moment there but I figured it out.
It's much harder to break in if you lack a CS Degree.My point was that you don't need -- and oftentimes shouldn't get -- a CS degree to get into tech for the most money. I have a CS degree and work in IT consultancy. I worked in product dev previously. Everyday I meet people in this industry who majored in not just something that's not CS, but other things like history or polisci.
So the advice I was trying to give was that to only get a CS degree if you actually want to code. There are better, easier ways to make more money in tech without computer science, which is something many people aren't aware of.