Tui gặp lỗi khó hiểu unexpected token :; ở những vị trí này.
code:
#ifndef RECTANGLE_H_
#define RECTANGLE_H_
class Rectangle {
protected:
double length, width;
public:
Rectangle(double l, double w);
double area();
};
#endif
Đây là program OOP đầu tiên tui viết bằng c++ nên ko hiểu rõ lắm syntax sai chỗ nào, đã google khá nhiều nhưng chưa tìm ra cách. Mong mn giúp đỡ