填空题

以下程序运行后的输出结果是______。
#include <iostream>
#include <string>
using namespace std;
class Y;
class X

int x;
char *strx;
public:
X(int a, char *str)

x=a;
strx=new char[strlen(str)+1]
strcpy (strx,str);

void show(Y &ob);
;
class Y

prlvate:
int y;
char *stry;
public:
Y(int b,char *str)

y=b;
stry=new char[strlen(str)+1];
strcpy(stry,str);

friend void X::show(Y &ob);
;
void X::showY &ob)

cout<<strx<<",",
cout<<ob.stry<<endl;

int main

X a (10, "stringX");
Y b (20, "stringY");
a. show (b);
renurn 0;

【参考答案】

stringX stringY