conio Questions

6

Solved

On Windows, I have the following code to look for input without interrupting the loop: #include <conio.h> #include <Windows.h> #include <iostream> int main() { while (true) { ...
Stroman asked 29/3, 2015 at 22:36

3

I've been looking at using colours in a DOS program I'm writing in C. I was told that conio.h has the textcolor() function, but when I use it in my code, the compiler/linker throws errors at me say...
Powerless asked 30/12, 2011 at 0:56

12

In TurboC++, I can use the getch() function from conio.h. But in Linux, gcc doesn't provide conio.h. How can I get the functionality of getch()?
Grosswardein asked 18/7, 2010 at 17:40

3

for (;;) { cout << "You are playing for:" << playtime << "seconds." << endl; cout << "You have " << bytes << " bytes." << endl; cout << "Yo...
Entreat asked 20/7, 2014 at 8:34

2

Solved

I often see people use the header file of conio.h in C and C++, although I can´t see any major benefits in use of the functions inside of conio.h in comparison to the standard library functions. co...
Rivero asked 19/1, 2020 at 16:23

5

Solved

I am using gcc in ubuntu.so, I compile and execute in terminal. But In a online programming contest, they require the output as shown in diagram. For that, if I use TURBOC I can get it using con...
Novick asked 24/8, 2011 at 3:10

2

I usually use VS but trying cygwin for the first time. I am using windows 7 but on compiling hello world program using gcc, it says "fatal error: conio.h: no such file or directory". I am using W...
Stomy asked 6/8, 2014 at 18:32

1

#include <conio.h> int main (void) { for (;;) { unsigned char ch = getch(); printf ("0x%02X\n", ch); } } I want to get the scan code. Here is the description from Wikipedia: Reads ...
Abuttal asked 10/1, 2014 at 12:35

1

Solved

I am making a small Haskell game in Windows, where I would like to respond each time the user presses a key. Because getChar behaves strangely on Windows, I use FFI to get access to getch in conio....
Lecialecithin asked 24/11, 2012 at 19:15

1

Solved

I wrote this simple program on Windows. Since Windows has conio, it worked just fine. #include <stdio.h> #include <conio.h> int main() { char input; for(;;) { if(kbhit()) { inp...
Loquitur asked 3/9, 2012 at 12:13

1

While running a simple c program I receive an Unresolved inclusion: <conio.h> What am I missing? I am using eclipse on fedora 13. Please help me resolve this problem. If I am missing any...
Beekman asked 17/9, 2010 at 7:40
1

© 2022 - 2024 — McMap. All rights reserved.