Assuming that mystr and mystruct[n].member are both std::string instances, I'm not sure why the stringstream is being used - you should be able to simply read directly into the member string.
#include <iostream>
#include <string>
// Assuming that mystruct[n].member is a std::string
std::getline ( std::cin, mystruct[n].member );
It would be more helpful to have the declaration of the mystruct structure.
EDIT:
You can make use of the stringstream if the data you are reading and storing into the structure member is not the entire line of text. The extraction operator >> will extract a "word" at a time from the string, where whitespace delimits the "words" in the line of text. Example:
// Where the line of text is "123 abc pdq" ...
std::string s;
std::getline ( std::cin, s ); // s now contains: 123 abc pdq
std::stringstream ss ( s );
ss >> mystruct[n].member; // member will contain: 123
There are ways to change the behavior of the stream regarding how the whitespace is handled, but this is the most commonly used way of extracting parts of a string of text into other strings.
mystrandmystructare defined?