Solved

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

Posted on 2004-09-27
1
197 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

706 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

15 Experts available now in Live!

Get 1:1 Help Now