so I wrote a code and I want to get a number from user that says how many characters they're going to enter and then I want them to enter a string. the string has to calculate a few things which there is no problem with that part. my problem is that no matter where I put the cin for string size the program will ignore that line. can you help me please?
I really tried everything I knew. the moment I hit enter no matter how many cin's I put it will just show a result.
I want "k" to be the length user enters
I tried it but the second I put in the first number and go for the second one the program stops running ant it says it needs debugging
it either does that or doesn't give an answer at all