needed help in c++

0 shivam mahajan · June 17, 2015
how can i make sure in my c++ program , that when i enter one character , a different character is printed .
for eg - if press enter , different character '*' is printed ?
plz reply

Post a Reply

Replies

Oldest  Newest  Rating
0 Jon Z. · June 17, 2015
char c;

cin >> c;

if(c == '?'){
c = '!';
}
else if( c == ...){
c = ...;
}

cout
  • 1

C++

107,232 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator