Dev-C++ Pomoc

Dev-C++ Pomoc

offline
  • Pridružio: 31 Avg 2008
  • Poruke: 55
  • Gde živiš: Beograd

Napisano: 29 Okt 2012 12:14

Moze li pomoc u cemu je greska!? Evo coda:

#include <winbgim.h>

void waitForLeftMouseClick();

int main()
{

initwindow(400,300);//open a 400x300 graphics window

//delete these lines and replace them with your own code:
settextstyle(0,0,2);
setcolor(RED);

outtextxy(20,100,"Welcome to C++ graphics!");
setcolor(GREEN);
outtextxy(60,130,"Click this window");
outtextxy(120,160,"to exit.");

//while(!kbhit());//wait for user to press a key
waitForLeftMouseClick();//use one or the other of these--not both

closegraph();//close graphics window
return 0;
}

void waitForLeftMouseClick();
{
clearmouseclick(WM_LBUTTONDOWN);
const int DELAY=50;//Millisecconds of delay between checks
int x,y;
while(!ismouseclick(WM_LBUTTONDOWN));
delay(DELAY);
getmouseclick(WM_LBUTTONDOWN,x,y);
}

Dopuna: 29 Okt 2012 13:52

Moze pomoc?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 938 korisnika na forumu :: 9 registrovanih, 2 sakrivenih i 927 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., Areal84, Djole, kolle.the.kid, ladro, laurusri, Milos82, nuke92, shaja1