无法编译通过,和例题一样,看不出哪错了~
程序代码:
#include <stdio.h> #define PERIOD '.' int main (void) { int ch; int charcount = 0; while ((ch = getchar ()) != PERIOD) { if (ch != '"' && ch != ''') charcount++; } printf ("There are %d non-qoute charachters. \n", charcount); return 0; }
[ 本帖最后由 ilsoviet1917 于 2011-6-9 10:27 编辑 ]