|
From: <jp...@br...> - 2002-05-03 17:51:30
|
I've juste installed Dev-C++ in my computer (Win2K) and I tried to
compile the simple program bellow, but I've got the error message
"C:\DevC\Bin\ld.exe: cannot open crt0.o: No such file or directory". The
Dev-C++ is installed in a different directory because I was trying to
fix this problem, but I was not succesfull in doing it.
=20
#include<stdio.h>
=20
char primo(long int);
=20
void main(void){
long int i;
=20
printf("Entre com um n=FAmero: ");
scanf("%d",&i);
printf("%c",primo(i));
getchar(); =20
}
=20
char primo(long int x){=20
int i;
=20
for(i=3D2;i<x;i++)
if(x%i=3D=3D0)
break;
if(i=3D=3D(x-1))
return('P');
else
return('N'); =20
}
=20
=20
=20
---------------------------------------
"Porque, se eu orar em l=EDnguas,
o meu esp=EDrito ora de fato." I Cor=EDntios 14:14
--------------------------------------
=20
|