#include <fstream> #include "dicom.h" int main(int argc, char *argv[]) { ifstream f(argv[1]); //"data/2.16.840.1.113662.4.10.1.50485356.19980602.8170735.82.dcm"); f.ignore(128+4); Element e; while (e.read(f)) e.print(cout); f.close(); }