|
-
Apr 13th, 2002, 01:52 PM
#1
Thread Starter
Addicted Member
clrscr()
why is it that in some versions of conio.h, there is the clrscr() function. I notice that borland c++ has this in the conio.h header file but ms visual c++ doesnt. I dont actually have my copy of borland anymore, so is there anybody that can tell me how to clear the screen, or anybody that can send me the version of conio.h with the function built in.
-
Apr 13th, 2002, 03:28 PM
#2
Addicted Member
the code below clears the screen:
system("cls");
-
Apr 13th, 2002, 04:21 PM
#3
Thread Starter
Addicted Member
what header do i need to include in order to get system() to work? I see its known to visual C++ because it displays the tool tip text for the function. However, it fails to compile.
--------------------Configuration: ctp - Win32 Debug--------------------
Compiling...
ctp.cpp
D:\Personal\Programs\ctp\ctp.cpp(8) : error C2065: 'system' : undeclared identifier
Error executing cl.exe.
ctp.exe - 1 error(s), 0 warning(s)
-
Apr 13th, 2002, 04:36 PM
#4
Originally posted by craig_phillips2
what header do i need to include in order to get system() to work?
stdlib.h
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Apr 13th, 2002, 06:09 PM
#5
Re: clrscr()
Originally posted by craig_phillips2
why is it that in some versions of conio.h, there is the clrscr() function.
clrscr is not included in all versions of C++, because it's not part of the ANSI C++ standard
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|