subject

Write a c++ program to check user input string is a palindrome. a palindrome can be defined as "a word, phrase, or sequence that reads the same backward as forward, e. g., madam or nurses run." hint: use of the getline function for acquiring user input string with space. use of string class function and operator to get the length and specific position of char.
reference:
#include
#include
using namespace std;
int main()
{
string msg;
getline(cin, msg);
for(int i=0; i
cout < < msg[i];
return 0;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In simple terms, how would you define a protocol?
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a.the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c.banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
You know the right answer?
Write a c++ program to check user input string is a palindrome. a palindrome can be defined as "a wo...
Questions
Questions on the website: 13722360