All pastes #21073 Raw Edit

Stuff

public cpp v1 · immutable
#21073 ·published 2005-08-25 05:08 UTC
rendered paste body
#define WINDOWS#ifdef WINDOWS#include <windows.h> void clrscr(void){    COORD                       coordScreen = { 0, 0 };    DWORD                       cCharsWritten;    CONSOLE_SCREEN_BUFFER_INFO  csbi;    DWORD                       dwConSize;    HANDLE                      hConsole = GetStdHandle(STD_OUTPUT_HANDLE);    GetConsoleScreenBufferInfo(hConsole, &csbi);    dwConSize = csbi.dwSize.X * csbi.dwSize.Y;    FillConsoleOutputCharacter(hConsole, TEXT(' '),                                dwConSize, coordScreen, &cCharsWritten);    GetConsoleScreenBufferInfo(hConsole, &csbi);    FillConsoleOutputAttribute(hConsole, csbi.wAttributes,                                dwConSize, coordScreen, &cCharsWritten);    SetConsoleCursorPosition(hConsole, coordScreen);}#elif defined(NIX)void clrscr(){	system("clear");}#elif defined(DOS)void clrscr(){	system("cls");}#endif