My for loop is skipped when debugging, and even when I step-into I could not figure out why. Program requires you to add at least one person first. Thankyou.
Your container initialization is in the wrong place. Every time you go through your while loop it creates/recreates accountTable. Move map<string,string> accountTable; outside your while(true) loop, just above it.
8 9 10 11 12 13
int main()
{
map<string,string> accountTable;
while(true)
{
Look at line 28, cin >> password;a. Typo when you copied your source?
Yes, typo. I've consistently noticed that I too often assume that where the code isn't working properly is where the problem is. Shifting the map to the proper location fixed my issue completely.