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, 22.06.2019 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
You are new to microsoft certification and want to start out by getting a certification geared around windows 8. what microsoft certification should you pursue?
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
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
question
Mathematics, 12.08.2020 05:01
Questions on the website: 13722361