Dec 7, 2016 at 10:43am Dec 7, 2016 at 10:43am UTC
Hello! I use Dev C ++, I install the package <conio2> and it does not bind to the compiler, which I can do.
Use <iostream>
using namespace std;
[code
#include <iostream>
#include <conio2>
using namespace std;
int main ()
{
int hor, Lmin, seg, nseg;
cout<<"\t\t\t\tReloj cutre"<<endl;
for (hor=0; hor<24;hor++){
for (Lmin=0; Lmin<60; Lmin++){
for (seg=0; seg<60 ;seg++){
for (nseg=0; nseg<60; nseg++){
cout<< "Tiempo:" <<hor<< ":" <<Lmin<< ":" <<seg<<endl;
cout << setxy(10, 10)<< setclr(YELLOW) << setbk(BLUE) << "Hello";
gotoxy ( 35, 7);
}}}}
\code]
Last edited on Dec 7, 2016 at 10:57am Dec 7, 2016 at 10:57am UTC
Dec 7, 2016 at 11:22am Dec 7, 2016 at 11:22am UTC
What error message are you getting?
Dec 7, 2016 at 12:01pm Dec 7, 2016 at 12:01pm UTC
[Error]conio2;No such file or directory
Dec 7, 2016 at 12:09pm Dec 7, 2016 at 12:09pm UTC
#include <conio2>
should be #include <conio.h>
.
Last edited on Dec 7, 2016 at 12:09pm Dec 7, 2016 at 12:09pm UTC
Dec 7, 2016 at 12:16pm Dec 7, 2016 at 12:16pm UTC
Possibly the name should be <conio2.h> (I'm not sure).
If that doesn't work, then the compiler is not aware of the directory where the header file is located.
You can set it under the menu heading
tools->compiler options->Directories->C++ Includes
There's a little yellow icon in the bottom right of the pop-up window to allow adding a new directory to the list.
Dec 7, 2016 at 6:49pm Dec 7, 2016 at 6:49pm UTC
Not worth the solution; thank you.