kiem tien, kiem tien online, kiem tien truc tuyen, kiem tien tren mang
Thứ Năm, 13 tháng 3, 2014

Video:


Mã lệnh:
#include <dos.h>
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <time.h>
int main(void)
{

int
midx, midy;
initwindow(800,600);
srand(time(0));
float
x=0, r=100, x1=200,y1=100 , set=0 ;
for
(float i=0;i<1000;i=i+0.003)
{

if
(kbhit()){
exit(0);
}

float
b=+100*cos(i*10);
int
a1=x1+r+(b)*sin(i);
int
b1=y1+r+(b)*cos(i);
int
clr;
set=set+1;if(set==4000){set=0; clr=rand()%16;}
putpixel(a1,b1-100,rand()%15);
putpixel(a1-200,b1-100,(clr+1));
putpixel(a1+200,b1-100,(clr+2));

putpixel(a1,b1+150,(clr+5));
putpixel(a1-200,b1+150,(clr-1));
putpixel(a1+200,b1+150,(clr-2));
x=x+0.5;
delay(1.5);
}

getch();
}
13 Mar 2014

0 nhận xét:

Đăng nhận xét

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

domain, domain name, premium domain name for sales

Bài đăng phổ biến