Awakening
Active Member
I've not been active in this forum in a long time now, I hope some of you still remember me Still waiting patiently for my Pandora to arrive and following PandoraPress through to the wonders of RSS.
I've coded quite a lot in earlier years but never anything as complicated as C++. I'm not coding much these days but there's one project I'm passionate about and keep thinking about and I fiddle around with the code every now and then. I'm learning myself C++ and SDL using the Lazy Foo tutorials. The only way I'm can really enjoy coding is to do it hands on, I plan stuff in my head and get going, learning as I go.
Anyway, to my question. I have a Globals source file and a Globals header file (as suggested by Lazy Foo). Is it just me or is it really annoying to have two almost identical files and keeping them both "updated" all the time? I only have a header file for the constants and they are doing fine. Is there any better way of doing this?
I've coded quite a lot in earlier years but never anything as complicated as C++. I'm not coding much these days but there's one project I'm passionate about and keep thinking about and I fiddle around with the code every now and then. I'm learning myself C++ and SDL using the Lazy Foo tutorials. The only way I'm can really enjoy coding is to do it hands on, I plan stuff in my head and get going, learning as I go.
Anyway, to my question. I have a Globals source file and a Globals header file (as suggested by Lazy Foo). Is it just me or is it really annoying to have two almost identical files and keeping them both "updated" all the time? I only have a header file for the constants and they are doing fine. Is there any better way of doing this?