12-04-2005, 12:24
|
|
|
חבר מתאריך: 12.04.05
הודעות: 40
|
|
הפונקציות האלה שייכות לבורלנד וימצאו רק שם. (קרוב לוודאי)
אצל מהדרים אחרים שמים גם את ספריות ה-ANSI-C/++ ולפעמים גם ספריות משלהם, אבל לא של חברות אחרות.
כך שאין אותם בvisual c++
תחליפים:
קוד PHP:
#include <stdlib.h> // for clrscr
#include <windows.h> // for gotoxy
void clrscr()
{
system("cls"); // work only in windows, in linux it is something similar to "cls"
}
void gotoxy(int x,int y)
{
COORD coord;
coord.X=x;
coord.Y=y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE),coord);
}
נערך לאחרונה ע"י pex22 בתאריך 12-04-2005 בשעה 12:28.
|