how can I declare clrscr() in microsoft visual c++?
in borland c++, clrscr() is declared in conio.h
or doesn't microsoft visual c++ support clrscr()? or does microsoft visual c++ has another function instead of clrscr()?
how can I declare clrscr() in microsoft visual c++?
in borland c++, clrscr() is declared in conio.h
or doesn't microsoft visual c++ support clrscr()? or does microsoft visual c++ has another function instead of clrscr()?
Read the FAQ?
http://faq.cprogramming.com/cgi-bin/...&id=1043284385
Hello,
The function clrscr() is not within the C++ standard. It was included in a few compilers, such as Borland, in the header conio.h. So far there is neither a standard function for C or C++ that will clear the screen. The languages are designed to be platform independant.
You can always learn more about clearing the screen in the FAQ area.
- Stack Overflow
Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.
well, thanks all...
Opps bit late but for
Well microsoft didnt coded them and for these reasons i have code a library for VC containing all these functions goto mysiteOriginally Posted by canliceset
www.maxpert.tk an d download conumb if you need any help how to use or link it post it on forums over there
Last edited by cfrost; 11-16-2004 at 10:31 PM.
Software is like sex it is good when it is free
system("cls");
system calls are not the best idea, read the same faq as Salem posted option 6
Woop?
I have a 6 part tutorial on console programming at my web site. It statrs here. Clearing the screen is covered in part 2 but there are a lot of other potentially useful areas covered.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.