error C2664: 'strcat' : cannot convert parameter 1 from 'char (*)[4]' to 'char *'Code:int filelen; filelen = fseek(fp,0,SEEK_END); char buffer[sizeof(filelen)]; rewind(fp); char ch; ch = getc(fp); while(ch!=EOF){ strcat(buffer,ch); ch = getc(fp); }
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
anyway i don't understand what the problem here is, any ideas?





Reply With Quote