Solved

help ( urgent )

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to gracefully close the c++ 11 thread? 3 122
Dialogbox API leak? 18 109
Eclipse IDE - Cannot copy/paste from console output 8 314
learn programming 8 68
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 …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

749 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