Solved

How do i take an input from the user and put into my variables??

Posted on 2004-09-27
1
215 Views
Last Modified: 2010-04-10
#include <iostream>

using namespace std;

int main(){

String =0;
NumOne = 0;
NumTwo = 0;
NumThree = 0;
NumFour = 0;
NumFive = 0;

      cout << "Please Enter A Palindrome:  ";
      cin >> String;

      if(NumOne == NumFive && NumTwo == NumFour)
      cout << " Thats correct its a Palindrome " << endl;
      
      else  
      cout << " INCORRECT INVALID PALINDROME" << endl;

      return 0;
}

How do i get what they input into my variables
0
Comment
Question by:tedschnieders
1 Comment
 
LVL 11

Accepted Solution

by:
PennGwyn earned 459 total points
ID: 12164533
That's what cin is doing.

Although you don't seem to have defined any of your variables, and this forum is "Networking" and not "C++ Programming"....

0

Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now