i want to convert stringstream into a string type
e.g.

void countParameters(stringstream p_InputDataToCount, unsigned int &counter, char Delimeter)
{  
	
	size_t found;
	//stringstream convert ( p_InputDataToCount ); 
	//convert>> std::hex >> m_nCommandID;
               //I want to do somethong like this
	found=p_InputDataToCount.find_first_of(Delimeter);

  while (found!=string::npos)
  {
    counter++;
    found=p_InputDataToCount.find_first_of(',',found+1);
  }

}
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.