- Aug 30, 2004
- 2,519
- 1
- 81
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char buffer[256];
printf("Enter your name and press <Enter>:\n");
gets(buffer);
printf("\nYour name has %d characters and spaces!", strlen(buffer));
return 0;
}
anybody no why it doesn't. I use Notepad++ and MinGW on Vista and the other samples so far compiled.
The error I get....28:9: error: .. expected unqualified id before numeric constant
