Showing posts with label Character Finding. Show all posts
Showing posts with label Character Finding. Show all posts

Tuesday, 22 July 2014

Write a program in C++ which tell the character press by user

Structure of Problem Requirements 


In this simple Program User press a Key from the Keyboard and the Program give him that key as output . Just Declare a Data Type Char and Print that after taking the input from the User.

Source Code 

#include<iostream>
using namespace std;
int main ()
{
char a;
cout<<" Press a Key ";
cin>>a;
cout<<" You Press " <<a;
return 0;
}

Output of the Program


c++ Programming
Tell the Character by User