0

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.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Salem
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.