【简答题】有以下程序: 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 Base { int a; public: Base(int x){ a=x; } void show(){ cout<<a; } class Derived : public Base { int b; public: Derived(int i) :Base(i+1),b(i){} void...