C++ what am I doing wrong? (beginner coding assignment) code and detail inside.

What I am trying to is to validate string custID. custID needs to include 6 characters. digit/digit/digit/upper/digit/upper. If its more or less than 6 or not in those digit/upper/ sequence, I am to output the invalid custID to an error log and valid custID to an array. [1] Here(http://pastebin.com/Xe8uTxUn) is what I have so far. Sample [2] Master.txt(http://pastebin.com/sQYdHNbS). It seems like I can output the invalid correctly but its not printing the valid datas. Thanks guys in advance...
Topic archived. No new replies allowed.