0

[Error] expected unqualified-id before 'public'

public class KalmanLatLong { private final float MinAccuracy = 1; private float Q_metres_per_second; private long TimeStamp_milliseconds; private double lat; private double lng; private float variance; // P matrix. Negative means object uninitialised. NB: units irrelevant, as long as same units used throughout

23rd Nov 2018, 3:55 AM
Asyraf Ashari
Asyraf Ashari - avatar
1 ответ
+ 2
If you mean C++, you are not using the access specifier keywords correctly. class Class { private: int prop1; int prop2; public: int prop3; private: int prop4; }; You can't use an access specifier on the class. The specifiers are used to group the properties and methods of the class.
24th Nov 2018, 4:24 AM
John Wells
John Wells - avatar