[A89] Re: [OT] C++ help


[Prev][Next][Index][Thread]

[A89] Re: [OT] C++ help




Wbat about:


  string input;

  cin >> input;
  if(input[0] == input[5} && input[1] == input[4] && input[2] == input[3]) {
    cout << "Palindrome!" << endl;
  } else {
    cout << "not! try another one" << endl;
  }


///Olle




Follow-Ups: References: