expected member name or ';' after declaration specifiers
This is the error I am getting and I am not sure where it wants me to put the semi-colon as I think I have placed them all correctly. This is the section of the code where the error occurs.
class Read : public Data {
public: {
float result_1 = sensor_stream1.get_data(&state);
float result_2 = sensor_stream2.get_data(&state);
float result_3 = sensor_stream3.get_data(&state);
std::cout << result_1 << '\t';
};
};
On the bracket after the second public is where it says the error is. The data class that this class is inheriting from doesn't show any errors whilst writing or when I have run the code.
Any help would be much appreciated.