Here is my program, but I dont get why it doesent work
Once this works I will make it generate a random code of course.Code:#include <iostream> using namespace std; int main() { char code[6] = "abcde"; char icode[6]; char letter; char opcion; bool playagain = false; int i = 0; do { cout << "Try to guess a code I have thought of:\n"; for (i = 0; i < 5; i++) { cin >> letter; icode[i] = letter; } } while (icode != "abcde"); return 0; }