I'm currently having an issue with a do-while loop never ending. I'm not sure what I am doing wrong, though its probably something wrong. I'm pretty sure it has to do with the outer loop because it isnt giving me invalid and I'm pretty sure my i counter is going up. The issue is that whenever i type "New" to start the next paragraph, it just re-prompts the EXIT/New loop. Thanks!
This was coded in Code::Blocks on a Raspberry Pi Zero
EDIT: After adding a cout line to display i before the getline, I've discovered it has to do with the getline.
EDIT 2: After confirming this I have discovered the issue is mixing cin inputs, namely the cin inside the inner loop wasn't wiping the enter from the buffer and was causing the getline to receive an empty line.
The reset variable is initialized to false, and is set to false any time the loop starts, as it is the first thing the inner loop does. Mind you, a lot of this stuff probably isnt convention, as I'm just starting out in coding, so I'm doing what makes sense to me.
The outer loops purpose is to take in text using the getline, and put it in text[i]. after the text has been entered, the inner loop asks if you want to exit the program, do another paragraph, or spits out an error and resets the loop. If Exit is entered, it then exits the outerloop and goes into the for loop, which loads it into the file.