plz help me to solve those errors..

# include<iostream>

using std::cout;
using std::cerr;
using std::endl;

Class DcmFileFormat


int main()
{

DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("C:\Documents and Settings\ganeshk\デスクトップ\subj006reg000.dcm\GE2EQ2FB.DCM");
if (status.good())
{
OFString patientsName;
if (fileformat.getDataset()->findAndGetOFString(DCM_PatientsName, patientsName).good())
{
cout << "Patient's Name: " << patientsName << endl;
} else
cerr << "Error: cannot access Patient's Name!" << endl;
} else
cerr << "Error: cannot read DICOM file (" << status.text() << ")" << endl;

return 0;
}

Compiling...
DCM.cpp
C:\Documents and Settings\ganeshk\デスクトップ\DCM.cpp(10) : error C2146: syntax error : missing ';' before identifier 'DcmFileFormat'
C:\Documents and Settings\ganeshk\デスクトップ\DCM.cpp(10) : error C2501: 'Class' : missing storage-class or type specifiers
C:\Documents and Settings\ganeshk\デスクトップ\DCM.cpp(10) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

Nothing else than this can help you my friend..

A dose of this and this wouldn't go amiss either.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.