-->
当前位置:首页 > 题库

PROGRAMMING:The use of stringstream class

Luz5年前 (2021-05-10)题库354
Use stringstream to sort integers. It is required to save the input in a stringstream object, put the 10 integers into an integer array, sort the integer array by size, and then save it back to the stringstream object.
###Input format:
From the keyboard, enter 10 integers on a line, separated by spaces,
###Output format:
Input string, integer array before sorting, and stringstream object after sorting. Integers are separated by spaces, and there is no space after the last integer.
###Input example:
```in
12 34 65 -23 -32 33 61 99 321 32
```
###Output example:
```out
12 34 65 -23 -32 33 61 99 321 32
12 34 65 -23 -32 33 61 99 321 32
-32 -23 12 32 33 34 61 65 99 321
```







answer:If there is no answer, please comment