hello,
am running a c program in visual C++ 2010 express,when i type the below code it keep running and after it give me the message that myfilename.exe has encountered a problem and needs to close.when i choose ok it give me the output.when i change the while loop to for loop and decrease the loop counter to 4 (for (int n=0;n<4;n++)) it work fine.any idea plz
void distance()
{
FILE* output1;
FILE* output2;
char str[11];
int i=0;
int mslat,mslong,bslat,bslong;