I checked the paths for my header files under
"Options\Project\Directory" and they are pointing to the correct place.
Last time I used this compiler I had Windows 95 installed. I have also
since installed Visual C++ 6.0. I've tried uninstalling and
reinstalling both of them, but nothing seems to work!!! Anyone have
anything similar happen to them??
I will post the code, although I don't think that it will help...like I
said, I've taken my own previously working programs and had the same
problem.
#include <stdio.h>
#include <conio.h>
int main(void)
{
char buffer[83];
char *p;
/* There's space for 80 characters plus the NULL terminator */
buffer[0] = 81;
printf("Input some chars:");
p = cgets(buffer);
printf("\ncgets read %d characters: \"%s\"\n", buffer[1], p);
printf("The returned pointer is %p, buffer[0] is at %p\n", p,
&buffer);
/* Leave room for 5 characters plus the NULL terminator */
buffer[0] = 6;
printf("Input some chars:");
p = cgets(buffer);
printf("\ncgets read %d characters: \"%s\"\n", buffer[1], p);
printf("The returned pointer is %p, buffer[0] is at %p\n", p,
&buffer);
return 0;
}