Mã:
#include<iostream>

using namespace std;

class console{
	public:
		static void Write(string s){
			cin >> s;
		}
		static void ReadLine(){
			cout >> x;
		}
};

class HOCSINH{
		private: string hoten;
			int toan, van;
			float dtb;
			console Console;
		public: 
		
		HOCSINH(){
			console *Console; 
			Console = new console();
		}
		
		void Nhap(){	
			Console.Write("Nhap ho ten: ");
			hoten = Console.ReadLine();
			Console.Write("Nhap diem van: ");
			van = int.Parse(Console.ReadLine());
			Console.Write("Nhap diem toan: ");
			toan = int.Parse(Console.ReadLine());
			dtb = (float)(toan + van) / 2;
		}
		
		void Xuat(){
			Console.Write("Diem trung binh: {0:0.00}", dtb);
		}
	};
	
class Program{	
	static void Main(string[] args){
		HOCSINH hsA = new HOCSINH();
		hsA.Nhap();
		hsA.Xuat();
	}
}
Ai fix lỗi hộ e bài này với :'(