Hello! I am pretty new in C++ and I apologise in advance if my questions seems silly.
I have a data structure declared in main.cpp and I want to pass that data to another class located in myClass.cpp (or myClass.h) without declaring it again.
and include it in both main.cpp and myClass.cpp? I will try that out and I think that would work.
and yup, i made changes to the struct.. also, yes, i need to eliminate paddings to communicate with my device. So far, no problem to transmit the data (if everything is written in a single file).