void (int X)
{
int i, j, count;
if x
if x=1 || x=2, print"%d x" return 1;
for( i=0; i
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.
回複:A C++ interview question
所有跟帖:
•
"if round i/j=0, i=i-1, count=0;" 這裏遞減i的值是不對的
-MGM-
♂
(0 bytes)
()
07/17/2007 postreply
22:50:12