using c++ is there any way to cout<<"plz help"<<endl; // only when the space bar is press not enter
helpingdeed
-1
Newbie Poster
Recommended Answers
Jump to Postsome thing like
char userIn; cin>>userIn; if(isspace(userIn)) { cout<<"whatever message"<<endl; }
isspace() comes from cstdlib or ccctype to early in the morning for remembering just google it and it will confirm
if you want it event driven then you will need something like a message …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.