|

楼主 |
发表于 2004-11-19 11:48:12
|
显示全部楼层
我不知道什么叫做特殊的. math.h 特殊吗,这也需要连的啊 . string.h 也没有吗 ? 还是不知道怎么连呢. 我也不知道graphics.h有没有, 您就不要给我反问, 直接教我说有还是没!!!
像下面的程序 在MS能编译通过, 是不是在LINUX下就不能了呢???
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
long i;
char s1[8], s2[8];
for (i=1; i<1000000; ++i)
{
ltoa(i, s1, 10); /* 转化为字符 */
strcpy(s2, s1); /* 复制字符 */
strrev(s2); /* 翻转字符 */
if (!strcmp(s1, s2)) /* 相同则打印 */
printf("%ld\t", i);
}
return 0;
}
还有包含#include<graphics.h>的程序呢??? |
|