Subscribe Our Channel

header ads

Search This Blog

Thursday, June 8, 2023

countdown in c language | timer in c++ programming | how make countdown in c++ language | learn c++ language | c++ programming | source code

 // _________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL ___________

//________________ C++ PROGRAMMING TO CREATE COUNTDOWN ______________


#include<stdio.h>

#include<graphics.h>

#include<dos.h>

#include<conio.h>

int main()

{

int gd=DETECT,gm,i;

char a[5];

initgraph(&gd,&gm,"c:\\tc\\bgi");


setbkcolor(8);

settextjustify(1,1);

settextstyle(10,0,9);

setcolor(14);


for(i=10;i>=0;i--)

{

sprintf(a,"%d",i);

outtextxy(getmaxx()/2,getmaxy()/2,a);

delay(1000);


if(i==0)

break;

cleardevice();

}

getch();

closegraph();

return 0;

}


//____________ I HOPE YOU LIKE THIS PROGRAMMING VIDEO ___________________


//____________ LIKE __________ SHARE __________ SUBSCRIBE __________________











captcha in c programming | generate captcha in c++ language | how captcha work in c program | learn c language

 // _________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL ___________

//________________ C++ PROGRAMMING TO GENERATE RANDOM CAPTCHA ______________



#include<stdio.h>

#include<conio.h>

#include <stdlib.h>

#include <dos.h>

#include <graphics.h>

int main()

{

  int i = 0, key, n, x, gd = DETECT, gm;

  char a[10];


  initgraph(&gd, &gm, "C:\\TC\\BGI");

  setbkcolor(15);


  x = getmaxx()/2;


  settextstyle(1, 0, 5);

  settextjustify(1,1);

  setcolor(5);

  outtextxy(x, 20, "CAPTCHA");


  settextstyle(1, 0, 3);

  settextjustify(1,1);

  setcolor(12);

  outtextxy(x, 125, "Press any key to change the generated \"CAPTCHA\"");

  outtextxy(x, 160, "Press escape key to exit...");


  setcolor(15);

  setviewport(100, 200, 600, 400, 1);

  setcolor(RED);

  randomize();


  while (1)

  {

    while (i < 6)

    {

      n = random(3);


      if (n == 0)

      a[i] = 65 + random(26);   // 65 is the ASCII value of A

      else if (n == 1)

a[i] = 97 + random(26); // 97 is the ASCII value of a

      else

a[i] = 48 + random(10); // 48 is the ASCII value of 0

      i++;

    }

    a[i] = '\0';

    outtextxy(210, 100, a);

    key = getch();


// Press Escape key to exit

    if (key == 27)

      exit(0);

    clearviewport();

    i = 0;

  }

}



//____________ I HOPE YOU LIKE THIS PROGRAMMING VIDEO ___________________


//____________ LIKE __________ SHARE __________ SUBSCRIBE __________________


Monday, June 5, 2023

ROSE DRAWING WITH ANIMATION IN C++ LANGUAGE | C GRAPHICS PROGRAMMING | C++PROGRAMMING | HOW TO DRAW ROSE IN C GRAPHICS PROGRAMMING

 // _________ WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL ___________

//________________ C++ PROGRAMMING TO DRAW ROSE WITH ANIMATION ______________



#include<stdio.h>

#include<conio.h>

#include<dos.h>

#include<graphics.h>

void floodfill(int x,int y,int old, int fill)

{

int current;

current=getpixel(x,y);

if(current==old)

{

putpixel(x,y,fill);

delay(2);

floodfill(x+1,y,old,fill);

floodfill(x-1,y,old,fill);

floodfill(x,y+1,old,fill);

floodfill(x,y-1,old,fill);

}

}

void main()

{

int gd =DETECT,gm,o=0;

initgraph(&gd,&gm,"c://tc//bgi");


setbkcolor(7);


setcolor(4);

settextstyle(1,0,1);

outtextxy(250,400,"Created by :- ");

setcolor(1);

outtextxy(250,420,"COMPUTER SOFT SKILLS");

setcolor(6);

outtextxy(250,440,"(ROHIT)");


setcolor(RED);

arc(150,110,400,170,35);

arc(150,120,420,130,30);


arc(128,130,360,150,30);

arc(137,151,404,492,31);

arc(112,119,120,289,10);


arc(185,119,394,170,32);

arc(182,130,390,170,25);

arc(205,107,200,60,9);


arc(102,155,340,65,30);

arc(176,205,140,225,60);

arc(224,132,139,222,31);

arc(169,201,-140,58,57);


line(116,200,226,200);

line(132,150,199,150);


// ______ROSE SPRIG_________

setcolor(2);

arc(132,290,400,180,40);

arc(113,288,435,550,20);

arc(135,282,400,500,20);

arc(210,290,370,140,40);

arc(235,286,370,120,15);

arc(212,286,400,150,20);

arc(188,284,400,150,10);

arc(156,298,400,100,29);


line(160,269,180,410);

line(175,274,195,420);

line(180,410,195,420);

line(174,360,189,365);

line(164,300,180,308);


// ___FILL ROSE RED COLOR

floodfill(156,110,o,12);

floodfill(145,110,o,12);

floodfill(146,105,o,12);

floodfill(169,220,o,RED);

floodfill(169,180,o,RED);

floodfill(169,132,o,RED);


//____FILL SPRIG GREEN COLOR

floodfill(180,270,o,10);

floodfill(178,330,o,10);

floodfill(180,370,o,10);

floodfill(176,305,o,10);


getch();

}



//____________ I HOPE YOU LIKE THIS PROGRAMMING VIDEO ___________________


//____________ LIKE __________ SHARE __________ SUBSCRIBE __________________








Featured Post

Happy Republic Day Wish Using HTML and CSS | 26 January wish using HTML/CSS

 Happy Republic Day Wish Using HTML and CSS, 26 January wish using HTML/CSS <!-- WELCOME ALL OF YOU ON COMPUTER SOFT SKILLS CHANNEL -----...

Popular Posts