所给程序有错,有许多全角字符,头函数也写错了,等,改正后的程序如下:#include <iostream>using namespace std;class MyClass{char ch;public:MyClass();MyClass(char character);void Print();~MyClass();};MyClass::MyClass(){cout<<"This is a constructor!"<<endl;ch='a';}MyClass::MyClass(char character){cout<<"This is a constructor!"<<endl;ch=character;}void MyClass::Print(){cout<<"The value of ch is "<<ch<<endl;}MyClass::~MyClass(){cout<<"This is a destructor!"<<endl;}int main(){MyClass first,second('b');first.Print();second.Print();return 0;}程序的运行结果: