I got this code witch seperates a piece of the inputted data string and ignores a part (in this case 'f').
How can i do it so it checks if the code contains f and the following is also f
like ff
Change while((count < 8) && (offset < code.size())) to just while(offset < code.size()), and get rid of the count variable. Not really need with this version. It ran beautifully for me.
Change if(code[offset] != 'f') to if(code[offset] != 'f' && code[offset] != 'F') if you want it to check for capital 'F's, also.