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 1154 korisnika na forumu :: 19 registrovanih, 2 sakrivenih i 1133 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 20624 - dana 04 Apr 2026 04:18

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: 4thFlavian, Atomski čoban, avijacija, darkkran, djboj, Jager715510, kibihrchak, laurusri, maksi007, Moldovan, Mzee, Nobunaga, novator, Sevetar, sistem22, stingD, superwhy, tomigun, Vanderx