R G B element array swap

前端 未结 3 1539
深忆病人
深忆病人 2021-01-17 04:16

I\'m trying to create this c++ program to perform the description below. I am pretty certain the issue is in the recursive, but uncertain how to fix it. I\'m guessing it j

3条回答
  •  抹茶落季
    2021-01-17 04:25

    just count the number of 'R', 'G' and 'B' letters and fill the array from scratch. much easier, no recursions.

提交回复
热议问题