source: fact/tools/pyscripts/sandbox/dneise/fact_compress/c++/test2.cpp@ 14269

Last change on this file since 14269 was 14268, checked in by neise, 12 years ago
evolving
File size: 317 bytes
Line 
1#include <iostream>
2#include <fstream>
3#include <stdio.h>
4
5using namespace std;
6int main()
7{
8 ifstream in ("test.bin", ios::binary);
9
10 short *b = new short[10];
11
12 in.read((char*)b, 20);
13
14 for (int i=0; i<10; i++)
15 {
16 printf("%X ", (unsigned short)b[i]);
17 }
18 cout << endl;
19
20 in.close();
21 return 0;
22}
Note: See TracBrowser for help on using the repository browser.