<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear all:<BR>
<BR>
In itk examples, sometimes the program use std::ofstream to output the results to a file. For example:<BR>
<BR>
if( argc > 9 )<BR> {<BR> std::ofstream parametersFile;<BR> parametersFile.open( argv[9] );<BR> parametersFile << finalParameters << std::endl;<BR> parametersFile.close();<BR> }<BR>
<BR>
When I use the same code, however, there is an error information: <BR>
<BR>
error: aggregate 'std::ofstream parametersFile' has incomplete type and cannot be defined.<BR>
<BR>
How should I solve this problem?<BR>
<BR>
Thanks a lot.<BR>                                            <br /><hr />更多热辣资讯尽在新版MSN首页! <a href='http://cn.msn.com/' target='_new'>立刻访问!</a></body>
</html>