Hi im fairly new to c++. I am writting a program that takes payment transactions(date,amount,credit card or cash) and splits into different files. Problem is that each line of data can have a different amount of information for instance one might have
date amount typeofpayment
while another might have
date amount typeofpayment questionable credit
i can write all of the amounts into variables the problem is that if there is the questionable credit at the end it throws off the code by entering that information into the wrong variable. I was wondering i could get around the questionable credit part.