Saturday 15 March 2014

Boolean Valued Response in C++ -



Boolean Valued Response in C++ -

this question has reply here:

c++ cin boolean(0,1) 3 answers

please, there way boolean valued response straight users in c++??. instance user reply yes or no not want store response in character or string variable straight boolean variable. thanks.

declare variable bool , take input 0 or 1 treated false or true respectively.

bool b; cin >> b;

c++

No comments:

Post a Comment