okay i am trying to compare a char thats a constant with a char that a person has inputed however this is as far as i have gotten and its not working.
#include <iostream>
using namespace std;
int main()
{
char input[20];
char correct [] = "Rudolf";
cin >> request;
if (char request[] = char correct[])
{
cout << " correct";
}
else
{
cout << "incorrect";
}
}
Any help is appreciated!! ;)