I am using Turbo C++ 4.5 version.

I tried window (). But when I complied the code given at the bottom of this page, I am getting the following error messages:

"call to undefined function 'window' in function main ()" 

"call to undefined function 'textcolor' in function main ()" 

"call to undefined function 'textbackground' in function main ()" 

"call to undefined function 'cprintf' in function main ()" 

Code

#include <conio.h>
int main(void)
{

    window(10,10,40,11);
    textcolor(BLACK);
    textbackground(WHITE);
    cprintf("This is a test\r\n");

    return 0;
}

Please advise how to sort out this issue. Your advise will be highly apprecaited.

Thanks & Regards

G SREE REKHA

First be sure that all the functions used are prototyped in <conio.h>
second be sure that your include directory is correctly set and finally be sure to make an executable file for the console application 'cos it won't work as an windows app.

hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.