c++ eight queens code course design