【简答题】有以下程序: include <fstream> include <string> using namespace std; int main () { char ch[] = 'The end'; ofstream outstr( 'd://put.txt', ios_base: :app); for (int i = 0; i < strlen( ch ); i++ ) outstr.put(...
【简答题】若有以下程序: include<iostream> using namespace std; class TestClass 1 { public: TestClass1() { X=0; } int x; }; class TestClass2:virtual public TestClass1 { public: TestClass2() { x=10; } }; class TestClas...