Input Error for the key, reversal and ordering

cin>>key>>reversal>>ordering;

I cant take this input in a single line is there any alternative?