回複:A C++ interview question

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.

所有跟帖: 

"if round i/j=0, i=i-1, count=0;" 這裏遞減i的值是不對的 -MGM- 給 MGM 發送悄悄話 (0 bytes) () 07/17/2007 postreply 22:50:12

請您先登陸,再發跟帖!