回複: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.