now it works perfectly, replacing result &= ( 1 << (7-i) ); with result |= ( 1 << (7-i) ); you can close the thread, thanks
ok, this is the corrected code #include <stdio.h> #include <iostream> using namespace std; // text points to 8 bytes string containing 0...
edit, the new file has dimension equal to 277 kbyte, but the content is 0 anywhere
i wrote this code #include <stdio.h> #include <iostream> using namespace std; // text points to 8 bytes string containing 0 and 1 symbols char...
ok, if i don't use a cast, i modify the main in this way: int main () { FILE * pFile; FILE * image; int c; pFile=fopen...
ok i solved with this code: #include <stdio.h> void ShowByte( char b , FILE * im) { for(int i = 7; i >= 0; --i) { if ( b...
hi, i made some progress but i need your help again; i post the code that i wrote but before to do that, i wanted to verify that the results were...
thank you very much, sorry but i was abroad and i couldn't answer. can you write the example with the fgetc() and fputc() functions please? assume...
Hi all, I'm an engineering student from Italy and i'd be very glad if you help me in solving a very big problem. First of all, i'm not expert at...
Separate names with a comma.