+ 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?
7 ответов
+ 3
conio.h - aren't using in Unix. it's part compilator in ms-dos for ms-dos. in Windows thats use for terminals.
+ 1
Libraries work. But the functions I mentioned don't.
0
<***.h> is old libs from C. Maybe use in c++ libs for c++?
0
libs no dependet from text editor, I' m using gvim +gcc in Debian and use <iostream>, <string> and etc
0
in unix after compilation you have execution file. that start in unix cli
0
ex.: $gcc foo.cpp -o foo $./foo