Monday, June 24, 2013

yaluwane menna hoda gaget 1k,meka download kargena unzip karala ena folder 1 programm file walata dagena internet browser 1 watena 1 shortcut 1 k desktop 1 hada ganna,Internet yana 1 godak pahasu wewi oyala wadiyennma yana web site walata ikmanin yanna puluwan wei,url type karanne natuwa,bye!!!!!!!!!

http://www.sendspace.com/file/7jb1rb

Saturday, June 15, 2013

C = Games and Graphics sample source codes

    C Code =Analogue Clock


Analogue Clock

#include<graphics.h>
#include<time.h>
#include<math.h>
#include<dos.h>
#include<stdio.h>
#define PI 3.14569
void sounder();
void bibin();
void main()
{
int gd=DETECT,gm;
time_t start, finish, now;
     struct tm *ptr;
     char *c, buf1[80],h[3],m[3],s[3];
     double duration;
     int i=0,j,k,x,y,xm,ym,xh,yh;


     /* Record the time the program starts execution. */

initgraph(&gd,&gm,"e:\tc\bgi");
clrscr();
setfillstyle(SOLID_FILL,BLUE);

bar3d(170,100,470,400,10,1);


setcolor(GREEN);
circle(320,250,100);//for outercircle inner radius
circle(320,250,125);//for outercircle outer radius
circle(320,250,1);//for innercircle inner radius
circle(320,250,7);//for innercircle outer radius
setfillstyle(SOLID_FILL,RED); //for outercircle filling red color
floodfill(430,250,GREEN);//filling outercircle with green border
floodfill(320,250,GREEN);
setfillstyle(SOLID_FILL,MAGENTA); //for innercircle filling mangenta
floodfill(325,250,GREEN); //filling innercilling with green border
settextstyle(1,0,1);
setcolor(15);
outtextxy(318,352,"6");
outtextxy(376,334,"5");
outtextxy(410,294,"4");
outtextxy(430,237,"3");
outtextxy(417,186,"2");
outtextxy(376,144,"1");
outtextxy(310,127,"12");
outtextxy(254,140,"11");
outtextxy(213,182,"10");
outtextxy(206,237,"9");
outtextxy(221,301,"8");
outtextxy(261,338,"7");
/* Record the current time, using the alternate method of */
     /* calling time(). */

    time(&now);

     /* Convert the time_t value into a type tm structure. */

     ptr = localtime(&now);

     /* Create and display a formatted string containing */
     /* the current time. */

    c = asctime(ptr);
    h[0]=c[11];
    h[1]=c[12];
    m[0]=c[14];
    m[1]=c[15];
    s[0]=c[17];
    s[1]=c[18];
    i=atoi(h);
    if(i>11) i=i-12;
    j=atoi(m);
    xm=320+80*(sin(PI/30*j));
                ym=250-80*(cos(PI/30*j));
                xh=320+60*sin(PI/6*i+PI/360*j);
                yh=250-60*cos(PI/6*i+PI/360*j);
                 setlinestyle(SOLID_LINE,1,3);
                 setcolor(BROWN);
                 line(320,250,xm,ym);
                  setcolor(MAGENTA);
                  line(320,250,xh,yh);
                 setbkcolor(GREEN);
sounder();

getch();
bibin();
closegraph();
restorecrtmode();
}

void sounder()
{
int frequency;
for(frequency=4000;frequency<5000;frequency++)
sound(frequency);
nosound();
return;
}
void bibin()
{
int midx=320,midy=230;

     cleardevice();
    
    delay(4000);
    return ;
}





enjoy with 

Friday, May 3, 2013


රොබොටික් පෝටලය (Robotic Portal)


රොබොටික්ස් යනු රොබෝවරුන් හා ප්‍රායෝගිකව ඔවුන්ගේ සැලසුම නිෂ්පාදනය හා යෙදීම පිළිබඳව වූ විද්‍යාව හා තාක්ෂණයයි. රොබොටික් සඳහා ඉලෙක්ට්‍රොනික් යාන්ත්‍ර විද්‍යාව හා මෘදුකාංග ගැන ප්‍රායෝගික දැනුමක් අවශ්‍ය වන අතර තවත් බොහෝමයක් විෂයවල විශාල ප්‍රායෝගික දැනීමක් සමඟ සම්බන්ධ වේ. මෙම ක්ෂේත්‍රයේ වැඩ කරන පුද්ගලයකු රොබොටිසිස්ට් (roboticist) ලෙස හඳුන්වනු ලැබේ.
රොබෝවරුන්ගේ පෙනුම හා හැකියාවන් අතිශයින් විවිධ නමුත් සියලු රොබෝවරුන් යම් ආකාරයක ස්වයංක්‍රීය පාලනයක් යටතේ යාන්ත්‍රික චලනය විය හැකි ව්‍යුහයකින් යුක්ත වේ. රොබෝවරුන්ගේ ව්‍යුහය බොහෝ දුරට යාන්ත්‍රික වන අතර එය ප්‍රගතික දාමය ලෙස හැඳින්විය හැක. (එහි ක්‍රියාකාරිත්වය මිනිස් සිරුරේ අස්ථි පද්ධතියට සමාන වීම නිසා) දාමය සබැඳුම් (එහි අස්ථි) ඔදයන එහි මාංශ හා අංශක එකක හෝ කිහිපයක නිදහස චලන සන්ධිවලින් යුක්ත වේ. බොහෝමයක් නූතන රොබෝවරු තැනීමේදී විවෘත ශ්‍රේණි දාම භාවිතා කරයි. එහිදී එක් එක් සබැඳුම් එයට පසුව වූ එකක පෙර වූ එකට සම්බන්ධ වේ. මෙම රොබෝවරු ශ්‍රේණි රොබෝවරු ලෙස හඳුන්වයි. බොහෝ විට මිනිස් අතක ආකාරයේ ස්ටුවර්ට් වේදිකා වැනි සමහරක් රොබෝවරු සංවෘත සමාන්තර ප්‍රගතික දාම භාවිතා කරයි. රොබෝවරුන් තැනීමේදී මිනිසාගේ, වෙනස් සතුන්ගේ හා කෘමීන්ගේ යාන්ත්‍රික ව්‍යුහය අනුගමනය කරන නමුත් අනිත් ව්‍යුහ සාපේක්ෂ වශයෙන් දුලබය. කෙසේ නමුත් එවැනි ව්‍යුහවල දියුණු කිරීම් හා භාවිත පර්යේෂණවල ක්‍රියාකාරී අංශයක් බවට පත්ව ඇත. (උදාහරණ - ජෛව යාන්ත්‍ර විද්‍යාව) රොබෝවරු අවසන් සබැඳුමේ ස්ථානගත කළ හැකි අවසන් කිරීමේ අපසාභීවලින් යුත් පාලකයා ලෙස භාවිතා වේ. මෙම අවසන් කිරීමේ අපසාරී පෑස්සුම් උපකරණයක සිට යාන්ත්‍රික අතක් දක්වා අවට පරිසරය පාලනය කළ හැකි ඕනෑම උපකරණයක් විය හැකිය.




Sunday, April 28, 2013

@r`@b~ w`K;zy Ó˜bq q#ÐmK a#ñ,@h~ k#m#WwK a#ñ obt @mNn avS}`vK ap h` eKí q#Ðm @bq`g#Ïmt @mNm nvwm @r`@b~ vr#N Îpq§mt obt Vv^W} a`r`[nyK krN@nË.


 v#D ìS}r sqh` 071-1403717