![]() |
Quote:
|
Curly brackets?
Apparently it's been awhile since I dipped my toe in C world so I'll just say make the code more linear and unless he's coding for a French person use the English Language for comments. |
Quote:
I recall that the guy left a lot of comments too, which is usually a good thing, but his comments were unnecessary, as they didn't explain anything helpful. Example: Code:
// This is the database connection |
Quote:
|
Quote:
-- Phil Karlton https://martinfowler.com/bliki/TwoHardThings.html |
Quote:
|
Quote:
thanks fellas . |
Quote:
Glad to hear that this helped. Is your son looking to pursue a career in computer science, or is this just one of his classes? Programming can be intimidating at first, but if he sticks with it, things will become easier. All that gibberish starts to make sense at some point. |
Quote:
|
Not sure how many more labs he will have, but here's a piece of advice our instructors gave us.
When you're trying to work out a problem with your code, step away. Do something else, get your mind off of it. Sometimes clearing your mind will bring you the answer. Also when you go to bed, put a pad and pen next to your bed. You would be surprised how many times that worked for me, waking up with either an answer to a problem or an idea of how to write a program in the middle of the night. Good luck. |
Quote:
|
All times are GMT -6. The time now is 11:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.