I am trying to write a function which can check, If a string has all characters with the same frequency. So in order to do that, I tried to make two Maps i.e unordered_map<char, int>. So in my next step, I just want to compare each value of each char on my map.
for(char i : B && char i : B){ //code goes here } So, Is it possible to have a For-In loop with two different variable like that?
https://stackoverflow.com/questions/66020260/is-it-possible-to-declare-two-variables-for-in-loop-in-c February 03, 2021 at 10:05AM
没有评论:
发表评论