1)
I'm having a peculiar problem and I'm not sure how to fix it. Let say I have a couples of #define something 85,etc. All those defines were use for a first.cpp but were transported to a .h and said .h was included into a second.cpp (so first.cpp's function are accessed trough #define "first.h" in the second.cpp)
Is there a way to transfer the #defines and put them directly a top second.cpp? Right now they are somewhat buried into the .h and making it quite problematic to change program parameter without having to switch opening all the .h
2) Is there an easy way to record integer to be exported in an other file like a .dat to be read by excel or something similar?
One suggestion: don't use #define instead use constint or constdouble or alike for constants (if it's C++ of course). That helps to avoid/detect name clash
1) That doesn't seem to be working and gives me multiple "was not declared in this scope" errors. I use defines because its kinda of a requirement of the work.(given to me by a teacher)