回复:A C++ interview question

来源: 2007-07-17 22:16:54 [旧帖] [给我悄悄话] 本文已被阅读:

void (int X)
{
int i, j, count;
if x if x=1 || x=2, print"%d x" return 1;

for( i=0; i count=1;
for (j=2;i-1,j++)
if round i/j=0, i=i-1, count=0;
if count=1, print"%d x";
};
};
return 1;

}

Check the grammar and compile it. it should work.