Задаю с = "c"
Пишу | c | на терменале другова компа но они каковото неравны друг другу почему ? ктонибудь знает в чём фишка
#include <stdio.h>
#define SEBUF 200
#define REBUF 200
int main(Void)
{ FILE *se, *re, *se_t, *re_t;
char s[SEBUF], r[REBUF], *c;
printf("loewa 2003\n");
no_in: se = fopen("send.txt" , "r");
re = fopen("recive.txt" , "a+");
se_t = fopen("ttyS0.txt" , "a+");
re_t = fopen("send.txt" , "r");
if (se == NULL)
{
printf("no open file send");
sleep(1);
goto no_in;
}
fgets(s,SEBUF,se);
printf(s);
fputs("$",se_t);
fgets(r,REBUF,se_t);
printf(r);
c = "c";
printf(c);
if (r == c) { printf("YES\n"); }
else { printf("NO\n"); }
}
|