Solved

help ( urgent )

Posted on 1997-05-01
5
145 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
Comment Utility
Edited text of question
0
 

Author Comment

by:9628657a
Comment Utility
Edited text of question
0
 
LVL 4

Accepted Solution

by:
AVaulin earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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.
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.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now