I am reading a book teaching me C
I am using visual c++ 2005 edition express

when i type the code written in the book, i get an error
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
i dont understand it at all.

here is the code
/*Prints a charter and some numbers */
#include <stdio.h>
main()
{
printf("A letter grade of %c\n", 'B');
printf("A test score of %d\n", 87);
printf("A class average of %.1f\n", 85.9);
return 0;
}

can you tell me how i can fix it? i think it has somethign to do with main()