Solved

help ( urgent )

Posted on 1997-05-01
5
148 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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