Solved

help ( urgent )

Posted on 1997-05-01
5
151 Views
Last Modified: 2010-04-10
How do you make the computer pause until a key is pressed, for example the space bar.

Also what commands can I use to clear the screen and change text colour.


By the way, I'm using Borlad C++ Version 3.1 compiler on a 486 66 mhz.

Cheers.

0
Comment
Question by:9628657a
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:9628657a
ID: 1163137
Edited text of question
0
 

Author Comment

by:9628657a
ID: 1163138
Edited text of question
0
 
LVL 4

Accepted Solution

by:
AVaulin earned 50 total points
ID: 1163139
You ask 3 questions instead 1. Here are answers:
1) Use "bioskey" function to determine keyboard buffer emptyness
and scan key code.
2) Use "clrscr" function to clear screen.
3) Use "textcolor" function to change text color (you must use
"cprintf" function instead "printf" to accept changing).
All function prototypes are in "conio.h".
0
 

Expert Comment

by:phillips
ID: 1163140
Isn't there a function called "Keypressed()"  ?

I'm sure I have used it in one of my programs, nut I'm not sure where.

.--phillips
0
 

Expert Comment

by:phillips
ID: 1163141
Isn't there a function called "Keypressed()"  ?

I'm sure I have used it in one of my programs, nut I'm not sure where.

.--phillips
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

628 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