I'm using a program (altnew.cc) that was provided by my class to measure the memory allocated. It's been working fine and I haven't been leaking any memory until I started changing how I read in input.
I typed in a 'q' which exits my program and tells me the bytes allocated at the end. It should be 0 but theres 14 bytes allocated after cin which don't go away. Do I have to flush cin or something?Code:string input; cin >> input;