mercredi 7 octobre 2015

Compare two strings in C++

I want to compare user input with the values stored in an string array. My array is

string colours[] = {"Black","Blue","Green","Orange","Red","Yellow"};

User input is assign to

CString selectedColor;

How can I compare these values?

Aucun commentaire:

Enregistrer un commentaire