I'm trying to convert an int to a string via an ostringstream but every time I put data into the stream, it stays in the stream. I've tried using both `.flush()` and `<<endl` but the stream never empties. [This question](https://stackoverflow.com/questions/13001880/stdostringstream-and-flush-member-function) suggests I don't really get streams (I don't, still working on that) and what I'm doing is hokum and unnecessary. 

```
int main()
{
  long int max = 0;
  ostringstream strs;
  for(int i=10;i<100; i++){
    for(int j = i; j < 100; j++){ 
        long int product = i*j;
        strs.flush();
        strs <<product;

        string str = strs.str(); 
        cout<<str;
        int size = str.length();
    }
  }
  cout<<max;
  return 0;
}

```

currently I get an output of 

```
100/100
110/100110
120/100110120
130/100110120130
etc...

```

instead of 

```
100/100
110/110
120/120
130/130
etc... 

```