string 과 iterator을 활용해서 string의 character을 bubblesort 하라는데
차라리 그냥 배열만쓰면 간단한걸 iterator을 어캐활용하라는건지 잘 모르겠다
20.0pt">•Write
a program that asks you to input a string and sort characters
in the string
font-family:Arial">–The program does NOT know how many
characters will be inputted
font-family:Arial">–Use string
and
iterator
Use
bubble sort
for문에서 기존 버블소트 배열로 구현하듯 int i j대신 이터레이터 두개 넣으면 되는거아니냐 - dc App
그냥 쭉 순회하면서 앞에꺼랑 비교하는 걸 반복하면 되는 거 아니노