+ 1

How to use <conio.h> functions on Linux?

I've been using Atom [text editor] on Linux Mint to type and compile .cpp files. It looks great and worked like a charm until now, as I've just come across <conio.h>, <math.h>, <ctype.h> and <string.h> functions. I know there are alternatives like <cmath> and <stdio.h> but some functions still won't work. E.g. 'strlen()' and 'getche()'. What do you experts suggest I do? Should I switch to an IDE like CodeBlocks?

14th Dec 2017, 3:31 PM
Advitiay Anand
Advitiay Anand - avatar
7 odpowiedzi
+ 3
conio.h - aren't using in Unix. it's part compilator in ms-dos for ms-dos. in Windows thats use for terminals.
14th Dec 2017, 4:00 PM
Eugen Laptev
Eugen Laptev - avatar
+ 1
Libraries work. But the functions I mentioned don't.
14th Dec 2017, 3:54 PM
Advitiay Anand
Advitiay Anand - avatar
0
<***.h> is old libs from C. Maybe use in c++ libs for c++?
14th Dec 2017, 3:42 PM
Eugen Laptev
Eugen Laptev - avatar
0
libs no dependet from text editor, I' m using gvim +gcc in Debian and use <iostream>, <string> and etc
14th Dec 2017, 3:45 PM
Eugen Laptev
Eugen Laptev - avatar
0
in unix after compilation you have execution file. that start in unix cli
14th Dec 2017, 4:02 PM
Eugen Laptev
Eugen Laptev - avatar
0
ex.: $gcc foo.cpp -o foo $./foo
14th Dec 2017, 4:03 PM
Eugen Laptev
Eugen Laptev - avatar