#include<stdio.h>
int main(){
FILE *fp;
char c;
fp = fopen("hello.txt","r");
while(c = fgetc(fp) != EOF)
{
putchar(c_;
}
fclose(fp);
}
결과적으로 suggest parentheses around assignment used as truth value
오류가 납니다.
#include<stdio.h>
int main(){
FILE *fp;
char c;
fp = fopen("hello.txt","r");
while(c = fgetc(fp) != EOF)
{
putchar(c_;
}
fclose(fp);
}
결과적으로 suggest parentheses around assignment used as truth value
오류가 납니다.
int main(){ FILE *fp; char c;
fp = fopen("hello.txt","r"); while(c = fgetc(fp) != EOF) { putchar(c_; }
fclose(fp); }
결과적으로 suggest parentheses around assignment used as truth value 오류가 납니다.