answersLogoWhite

0


Best Answer

You will need to read a single characther in the loop with something like a getch and save the characther wherever you want it. That way you can process the resultant string any way you want while you're in the loop and still maintain control to make decisions based on the input. You are probably looking for the function kbhit(), which tests whether a character is available before you call getch(). Calling getch() directly waits until the character is available. If kbhit() returns true, the next getch() will not need to wait. char key = '\0'; while (key!='x') { if ( kbhit() ) key=getch(); /* do other actions */ }

User Avatar

Wiki User

โˆ™ 2008-01-19 02:58:53
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar

Add your answer:

Earn +20 pts
Q: Is there a C language programming statement that allows you to input and accept a keypress WHILE a loop is running?
Write your answer...
Submit
Sign up for more answers

Registered users can ask questions, leave comments, and earn points for submitting new answers.

Already have an account? Log in

Related questions

What is the difference between language and script?

There is no real difference; a scripting language is a programming language like any other. We use the term script to infer a programming language that does not need to be compiled to a lower-level code before running. Generally speaking, a scripting language is usually a high-level, interpreted programming language.


How can you chat on a webpage HTML?

HTML is just for designing the look and format of the page. To make the page actually do things, like running a chat page, takes programming. HTML is not a programming language so just using HTML you cannot create a fully functional chat page. You need HTML and a programming language working together to do that.


How you write a c programming?

You will need to first know a C language such as C# or C++. You will then need a compiler that takes what you write and turns it into a running program.


What has the author Emily M Jackson written?

Emily M. Jackson has written: 'Running with BASIC' -- subject(s): Apple II Plus (Computer), BASIC (Computer program language), Computers, Juvenile literature, Programming, Programming (Computers)


What language is kayak?

Kayak is a programming language in which every primitive operation, and hence every program, is invertible. Any Kayak procedure can be run either forwards or backwards, or even both within one invocation of the program. The syntax of Kayak is such that running a procedure in reverse is equivalent to running a characterwise reversal of that procedure forward.


What do you call running man in Filipino language?

Depends on which colloquial language. Tagalog (below) is the national language. Tumatakbo (running - tagalog), tumatakbong lalake (running man/boy - tagalog) Tumar-taray (running - ilocano), tumar-taray nga lalaki (running man/boy - ilocano)


Why is qbasic important?

WHY IS QBASIC AN IMPORTANT PROGRAMMING LANGUAGE QBASIC 'is' important; in the sense, that this particular programming language is the 'base' language...which lies behind many other far more highly sophisticated Microsoft programming languages, including... > Visual BASIC > VBScript - Visual BASIC Script > VBA - Visual BASIC for Applications > VB.NET - Visual BASIC.NET/(which is the very 'latest' Microsoft programming language version) -etc. KNOW QBASIC...; AND, YOU DO PRETTY MUCH KNOW THEM ALL What this means is, if you already know/or else are learning how to use the QBASIC programming language...; then, you will already have made huge inroads towards understanding how to work with and use ALL of those other Microsoft programming languages. NOTE: You do NOT 'need' to learn QBASIC, first, though; in order to go learn any of these other languages; but, it definitely gives you a much deeper level of understanding of how those other programming languages work/and, have been put together; because, historically speaking, QBASIC happens to be their direct ancestor programming language. QBASIC RETAINS BACKWARDS COMPATIBILITY WITH OLD BASIC Another way that having learned QBASIC can be useful; is if you are interested in running 'old BASIC' programs...-(BASIC, is the 'original' programming language from which ALL other BASIC versions/including QBASIC did descend from)-...then, QBASIC is, in fact, backwards compatible with BASIC...therefore, it will still allow you to be able to type in and run 'old BASIC' programs code inside of the QBASIC programming environment; where as the 'newer' versions of BASIC will NOT allow you to do this, anymore, unfortunately!


What is the Java platform?

Java platform is the name for a bundle of related programs from Oracle (originally Sun) that allow for developing and running software programs for the Java Virtual Machine (JVM). The Java programming language is but one of many programming languages that run on the Java platform including Scala, Clojure, and many others.


What are the advantage of thread?

Just knowing what a thread does should already make it quite clear what its advantages are. In programming, multithreading means the capability of running multiple threads, or instruction sequences, at the same time. A thread is simply a sequence of instructions, but the language is designed in such as way that other threads can work at the same time.Just knowing what a thread does should already make it quite clear what its advantages are. In programming, multithreading means the capability of running multiple threads, or instruction sequences, at the same time. A thread is simply a sequence of instructions, but the language is designed in such as way that other threads can work at the same time.Just knowing what a thread does should already make it quite clear what its advantages are. In programming, multithreading means the capability of running multiple threads, or instruction sequences, at the same time. A thread is simply a sequence of instructions, but the language is designed in such as way that other threads can work at the same time.Just knowing what a thread does should already make it quite clear what its advantages are. In programming, multithreading means the capability of running multiple threads, or instruction sequences, at the same time. A thread is simply a sequence of instructions, but the language is designed in such as way that other threads can work at the same time.


Which programming language is used in windows?

Windows is supported by practically any present-day general purpose programming language, with the exception of hardware specific languages aimed at technology not supported by the windows Operating system. Popular programming languages used for writing applications running under the Windows operating system include the C family of languages (C, C++, C#, Objective-C, and others), the Pascal dialects (Pascal, Turbo Pascal, Objective Pascal), and popular scripting languages such as Perl, Python or Ruby. The complete list of programming languages available for programming under Windows, or for generating code which executes under Windows, is very large and diverse.


What are the open source DB languages?

I know of 2. Mysql and OpenOffice.org. Mysql is very powerfull and easy to use along with PHP and the programming language running under apache. This will work in Windows, Linux and Mac OS.


What is the main use of php than other programming languages?

PHP is used mainly to help create dynamically generated website pages. It is a script language running on a server. PHP programs are not compiled as executable files.


Do you program a raspberry pi on itself or on a PC?

Once the RPi's Operating System of choice is up and running, it can be programmed like any other computer. Python is a popular programming language for use on the RPi (amongst others).


A programming error that occurs when running a program produces incorrect results?

Logic error.


Which type of error produces incorrect results but does not prevent the programming from running?

Logic error.


How manu types of programming language in HTML?

HTML itself is one language (Hyper Text Markup Language) But it can be used in conjunction with many other types of scripting languages such as..... CSS Javascript PHP ASP.Net VBscript(Only if the user is running windows) Python( With common gateway interface) Java(With plugin) And actionscript (Adobe Flash plugin)


What is running in Italian language?

the verb is correre- to run if you are presently running it is- sto correndo


How do you create your own operating system from scratch without any knowledge?

You cannot code an operating system without any knowledge of Programming. Developing an OS from scratch requires skills and a good knowledge of programming. It is not an easy task to develop an OS ,but it is not difficult either. To start with , you can start learning Assembly Language ,as this will help you to learn basics of CPU processing and Memory handling. Once you grasp the Assembly language you start of with first of with simple programs in Assembly language. After you have mastered it you can go out for coding a real running OS


Why Assembly language used on video games?

Assembly language is the fastest running software.


What is carlsberg's mission statement?

basically it is about a mission who is running low on beer


Do you have to know Visual BASIC to be a tester?

It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.It is not necessary, but it can help. It is possible to be a tester without knowing any languages. It depends on what kind of testing you are doing. If you are doing black box testing, you are basically running a program to see does it work. To do that you don't need to know any programming or what language it is even written in. If you are doing white box testing, you are looking at the actual code, in which case you will need to know a bit about the language being used.


Important of computer programming?

Computer programming makes the bare metal useful. Every program running on a computer is made by programmers, and that includes the operating system (like Microsoft Windows).


What is the name of some programming software for C++?

Intel has some of the best software for the visual studio. It is great for any kind of programming and can work well with any kind of application you are running.


Difference between in-system programming and in-application programming?

simple , In system/circuit Programming [ISP/ICP] is process with which entire on chip controller flash is programmed, where as In application Programming [IAP] is scheme in which a running program - re-programs controller flash by receiving new .hex file from any of the serial interface.


History of turbo-c?

HISTORY of Turbo C C stands for COMBINED PROGRAMMING LANGUAGE. Sometimes called SYSTEM PROGRAMMING LANGUAGE or SPL. C parallels with UNIX in 1969, by Bell Laboratories that sought an alternative to the Multics operating system for PDP-7 computer. The original version of Multics operating system was written in assembly language. The reason why the language is called C is that it is the successor to the language called B which was developed by Ken Thompson in 1970 while working on DEC PDP-7. B was the successor the language called BCPL (Basic Combined Programming Language) which was developed by Martin Richards. The C Language was designed in 1972 by Dennis Ritchie and first implemented at Bell Laboratory using DEC PDP-11 computer. In 1978 Brian Kernighan and Dennis Ritchie wrote the famous book called THE C PROGRAMMING LANGUAGE. C is often called a Middle Level Language but has a functionalism of a high-level language and assembly language. C has only 32 keywords (27 from Kernighan and Ritchie standard and 5 added by the ANSI Standardization committee). Programming is a series of individual instructions to the computer that collectively perform a meaningful task. It is the act of writing or coding computer instructions. Program Source Code is the finished encoded instructions. Programmer is the one who write the computer program and the first lady programmer is Lady Augusta "Ada" Byron. Translator is use to transform the source code into a machine language that the computer can understand. Linker is use to adjust the translated source file so that the program will run. Linking is usually distinct from the compiling process on a machine running MS-DOS.