下列程序中没有语法错误的语句是:
#include <iostream>
using namespace std; class one
{
int b; public:
void f(){cout<<"one::f()";} protected:
void h() {cout<<"one::h()";} };
class two:public one {
int d; public:
void f2() {cout<<"two::f2()";} protected:
void h2() {cout<<"two::h2()";} };
class three:protected two {
int e; public:
void f3() {cout<<"three::f3()";} protected:
void h3() {cout<<"three::h3()";} };
int main() {
three T;
T.f(); //1
T.h(); //2
T.f2(); //3
T.h2(); //4
T.f3(); //5
T.h3(); //6
return 0; }