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 981 korisnika na forumu :: 63 registrovanih, 7 sakrivenih i 911 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: 015, 1MAP, 357magnum, _Sale, advokat84, Ba4e, Belac91, BLACKBIRD201284, blatruc82, Bojan198527, bojan_t, bokisha253, Budala, BZ, Car89, ccoogg123, Cigi, Demi87, Dorcolac, dozorni, draganl, elenemste, feanor, Georgius, gomago, goxin, Ilija Cvorovic, jodzula, Kukuvaja, littlebunny, M74AB3, mercedesamg, milos.cbr, Mlav, MountAndBlade, Mskok, Nemanja.M, nemkea71, nisamBot, nsharambasa, oganj123, oldtimer, panzerwaffe, perunnurep, PrincipL, raptorsi, saputnik plavetnila, Savantije, Semprini, Sir Budimir, sspp, StalniPromatrač, stegonosa, suton, taackee, tmanda323, Trpe Grozni, Tvrtko I, Vlad000, x9, YugoSlav, zmajbre, Zoca