I have a code as below. Whenever temps = $Nodes
loop should end. I checked temps
every in iteration and saw that temps = $Nodes
once as expected but the loop was not ended. This code worked for VS10 but not working for linux. Any idea?
std::string temps;
s_mesh_file.open (mesh_file.c_str());
do
{
getline (s_mesh_file, temps);
std::cout << "temps: " << temps << std::endl;
std::cin.ignore();
}
while (temps != "$Nodes");