Programming Skills

  • Home
  • Programming Skills

Programming Skills To Improve, To Develop Our Programming Skills / Technical Skills

07/05/2015

In web development, Why PHP is popularly used back-end language instead of easy language like Python?

Programming languages used in most popular websites
12/03/2015

Programming languages used in most popular websites

The most popular (i.e., the most visited) websites have in common that they are dynamic websites. Their development typically involves server side coding, client side coding and database technology. The programming languages applied to deliver similar dynamic web content however vary vastly between…

23/08/2013

main()
{
printf("%x",-1

23/08/2013

main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}

23/08/2013

main()
{
extern int i;
i=20;
printf("%d",i);
}

23/08/2013

main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j

how a 3d pointer works !!!!!!!!!!!!!!
22/12/2012

how a 3d pointer works !!!!!!!!!!!!!!

28/09/2012

enum students
{
raj,arun=3,dinesh,ganesh;
}
main()
{
int a[raj+ganesh]={1,2,3,4,5};
enum students p=dinesh;
printf("%d",p>>1+1);
}

28/09/2012

o/p ???
main()
{
int i;
i=printf("yyv"),printf("###"), printf("zz");
printf("%c",i);
}

28/09/2012

o/p ???
main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}

06/07/2012

/*Description : It is popular snake game in which snake eat objects appear randomly on screen. Keyboard is used to play the game.*/







UP 72
LEFT 75
RIGHT 77
DOWN 80
ESC 1
__cplusplus
__CPPARGS ...

__CPPARGS

struct SnakeParts{
int x;
int y;
}box[50],target;
void snake(int ,int );
void initialize(int,int);
void interrupt (*prev)(__CPPARGS);
void interrupt our(__CPPARGS);
void snakeb();
int check();
void Rectangle(int ,int,int,int);
int
stop=0,blocks=4,direction=2,size=10,hit=1,snake_color=14,bk=7,target_color
=4;
int stage=1,speed=100,point=0;
void main(){
int gd=DETECT,gm,x=100,y=100,i=0,j=0;
char msg[50];
initgraph(&gd,&gm,"");
/*animation*/
prev=getvect(9);
/* setcolor(bk);
rectangle(0,0,639,479);
setfillstyle(SOLID_FILL,bk);
floodfill(250,250,bk);*/
initialize(x,y);
//getch();
while (1){
/*setcolor(bk);
sprintf(msg,"POINT = %3d",point);
settextstyle(0,HORIZ_DIR,1);
outtextxy(550,100,msg); */
switch(direction){
case 0: j-=size;break;
case 1: j+=size;break;
case 2: i+=size;break;
case 3: i-=size;break;
}
setcolor(snake_color);
snake(x+i,y+j);//,x+15+i,y+15+j);
delay(speed);
setcolor(bk);
snakeb(/*x+i,y+j*/);//,x+15+i,y+15+j);
setvect(9,our);
if(stop==1){break;}
if(check()){break;}
if(hit==1){
hit=0;
target.x=size+size*random(25);
target.y=size+size*random(20);
setcolor(target_color);
setfillstyle(SOLID_FILL,target_color);
circle(target.x+size/2,target.y+size/2,size/2-1);
floodfill(target.x+size/2,target.y+size/2,target_color);
}
setfillstyle(SOLID_FILL,target_color);
setcolor(2);
circle(target.x+size/2,target.y+size/2,size/2-1);
floodfill(target.x+size/2,target.y+size/2,2);
/*setcolor(11);
sprintf(msg,"POINT = %3d",point);
settextstyle(0,HORIZ_DIR,1);
outtextxy(550,100,msg);*/
gotoxy(65,4);
printf("POINT = %3d",point);
//delay(3000);
//cleardevice();
}
closegraph();
}
void interrupt our(__CPPARGS){
//if(inportb(0x60)==UP){
//i=0;j
switch(inportb(0x60)){
case UP: if(direction==1)break;direction=0;break;
case DOWN: if(direction==0)break;direction=1;break;
case RIGHT: if(direction==3)break;direction=2;break;
case LEFT: if(direction==2)break;direction=3;break;
case 15:blocks++;break;
case ESC: stop=1;break;
}

(*prev)();
}
void snake(int x1,int y1){//,int x2,int y2){
int k=0;
//if(getcolor()==15){
for(k=blocks-1;k>0;k--){
box[k].x=box[k-1].x;
box[k].y=box[k-1].y;
}
box[0].x=x1;
box[0].y=y1;
//}
//setfillstyle(SOLID_FILL,snake_color);
for(k=0;k

Address


Website

Alerts

Be the first to know and let us send you an email when Programming Skills posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

  • Want your business to be the top-listed Advertising & Marketing Company?

Share