ch can be reference to avoid writing str[i]. Instead you can write ch = ch + 1. If the index is not used in computations, you may use a range-based for loop:
for(auto&ch:str){str[i]=ch+1;}
#include <bits/stdc++.h>
Weird include.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ch
can be reference to avoid writingstr[i]
. Instead you can writech = ch + 1
. If the index is not used in computations, you may use a range-based for loop:Weird include.