11.07.2015 Views

przetwarzanie blokowe

przetwarzanie blokowe

przetwarzanie blokowe

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Podstawy programowania w C++P r z e t w a r z a n i e p l i k ó w a m o r f i c z n y c hPrzetwarzanie plików binarnych, otwarcie pliku, zapis liczby typu float#include #include int main(){FILE * fp;float num = 123.321;if( ( fp = fopen( "d.dat", "wb" ) ) != NULL ){printf( "\nZapis liczby: %g", num );fwrite( &num, sizeof( num ), 1, fp );fclose( fp );}...}return EXIT_SUCCESS;Copyright © Roman Simiński Strona : 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!