有如下程序: #include <iostream> using namespace std; class Music public: void setTitle(char* str) strcpy(title,str); protected: char type[10]; private: char title[20]; ; class Jazz:public Music public: void set(char* str) strcpy(type, Jazz ); ① strcpy(title,str); ② ; 下列叙述中正确的是( )。
A.程序编译正确
B.程序编译时语句①出错
C.程序编译时语句②出错
D.程序编译时语句①和②都出错