dev a borland

0

Mam pytanie, czy ktos zna odpowiedniki komend spod borlanda do deva (jezyk C), takich jak:

gotoxy;
delay;
textcolour;
textbackground;
clrscr;

pozd.
z gory thx,

0

gdzieś z google'i :

#include <iostream>
#include <windows.h>   // WinApi header

using namespace std;    // std::cout, std::cin

int main()
{
        HANDLE  hConsole;
        int k;

        hConsole = GetStdHandle(STD_OUTPUT_HANDLE);

        // you can loop k higher to see more color choices
        for(k = 1; k < 25; k++)
        {
                // pick the colorattribute k you want
                SetConsoleTextAttribute(hConsole, k);
                cout << k << " I want to be nice today!" << endl;
        }

        cin.get(); // wait
        return 0;
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1