Не собирается прога на С# ОС freebsd 6.2
Код: Выделить всё
.-(~/c/c2)-----------------------------------------------------(1@vintovkin)-
`--> gcc 3.c
3.c: In function `main':
3.c:13: error: stray '\' in program
3.c:13: error: syntax error before '!' token
3.c:13: error: stray '\' in program
3.c:13: error: stray '\' in program
3.c:13: error: stray '\' in program
3.c: At top level:
3.c:20: error: syntax error before string constant
3.c:20: error: syntax error before ')' token
.-(~/c/c2)-----------------------------------------------------(1@vintovkin)-
`-->
вот исходник:
Код: Выделить всё
.-(~/c/c2)-----------------------------------------------------(1@vintovkin)-
`--> cat 3.c
#define eof 0
#define yes 1
#define no 0
main()
{
int c, nl, nw, nc, inword;
inword = no;
nl = nw = nc = 0;
while((c = getchar()) != eof) {
++nc;
if (c == '\n')
++nl;
if (c==' ' \!\! c=='\n' \!\! c=='\t')
inwodr = no;
else if (inword == no) {
inword = yes;
++nw;
}
}
printf("%d %d %d\n", nl, nw, nc);
}
.-(~/c/c2)-----------------------------------------------------(1@vintovkin)-
`-->
материал брал тут:
http://lib.ru/CTOTOR/kernigan.txt