[Insight-users] include files : istringstream -->> #include < sstream>

Luis Ibanez luis . ibanez at kitware . com
Fri, 26 Sep 2003 11:37:10 -0400


Hi John,

C++ statements should terminate with a semicolon.

The only problem with the use of std::istringstream
declarations in your code is that you are missing ";"
in the previous line.


line 82
>     std::string learning_rate_string( argv[4] )
>     std::istringstream iss( learning_rate_string );
 >     iss >> number_iterations;

line 89
>    std::string number_iterations_string( argv[5] )
>     std::istringstream iss( number_iterations_string );
 >     iss >> number_iterations;


line 96
>     std::string variance_string( argv[6] )
>     std::istringstream iss( variance_string );
>     iss >> variance;



Please add the semicolons....



    Luis



--------------------------

Dill, John wrote:
> Your example worked fine.
> 
> Please try this.
> 
> Thanks,
> John
> 
> 
>>-----Original Message-----
>>From: Luis Ibanez [mailto:luis . ibanez at kitware . com]
>>Sent: Wednesday, September 24, 2003 11:15 PM
>>To: Dill, John
>>Cc: 'insight-users at itk . org'
>>Subject: Re: [Insight-users] include files : istringstream 
>>-->> #include
>><sstream>
>>
>>
>>
>>Hi John,
>>
>>Please try:
>>
>>
>>#include <sstream>
>>
>>int main()
>>{
>>   std::istringstream    readingDocumentationIsGood;
>>   return 0;
>>}
>>
>>
>>http://www . cplusplus . com/ref/iostream/istringstream/
>>http://www . cplusplus . com/ref/iostream/istringstream/istringstream . html
>>
>>
>>Regards,
>>
>>
>>   Luis
>>
>>
>>
>>
>>---------------------
>>Dill, John wrote:
>>
>>>I have been trying to use istringstream with my code (a 
>>
>>modified version of
>>
>>>ImageRegistration2), but when I compile, it claims it can't 
>>
>>find it.  I then
>>
>>>tried using cstdlib, but get the same problem.  Why are my 
>>
>>header files not
>>
>>>seemingly found?
>>>
>>>Thanks,
>>>John
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk . org
>>>http://www . itk . org/mailman/listinfo/insight-users
>>>
>>
>>
>>
>>
>