-->

program to draw a circle

//drawing circle
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int gdriver, gmode;    //variables declaration
gdriver=DETECT;        // detection of graphics driver

initgraph(&gdriver, &gmode, "c:\\tc\\BGI");
       /* initialize graphics and local variables with path in TC folder*/
       /* gmode is for graphics mode you want to work. */
circle(40,40,30);  // circle with starting and ending angle (coordinate value for x and y of screen)
  //where you want to display circle;for x and y res.
  //last argument is radius.
getch();          //gets one character from user and closes the graphics.
closegraph();     //closes graphics.h
}






contact me

Hi everyone,
I am Lal Krishna Mallik, a computer professional who loves to learn and share new things in computer field. I love computing most of the times.
---------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------------------------------

- how write code in "QBASIC"

-For database in SQL.

- for program in "C" language

-for program in "C++" language

-for program in "Java"

- for web applications in php

- for web development in jsp


-----------------------------------------------------------------------------------------------



-------------------------------------------------------------------------------------------------------
 mail me at

krishnaamallik@gmail.com


--------------------------------------------------------
If you need website or mobile apps,
contact me.
--------------------------------------------------------
If you need your assignment solution, please contact me at "krishnaamallik@gmail.com". 

how to activate graphics library in Turbo C++IDE

how to activate graphics library in Turbo C++IDE
 follow the steps given here:

step1) open turbo c++ IDE
          

step 2)  click options
             


step 3) click linker and then  library


step 4) click library and check out graphics library


done!!!
now you can start writing code using graphics.h

removing home button from blogger


follow following steps to remove "HOME" button from posts.
---------------------------------------------------------------------
-> sign in
->goto theme on dashboard/left side of your blog.
-> click edit HTML
> Find
     ]]></b:skin>
->replace that with following code above it.


.home-link { display:none;}

->save it.

->done.

Mouse related program:

Mouse related program:
-----------------------------------------------------------------------------------------------------------------------
1) WAp to activate /initialize mouse.
                                                                                                        solution

2)WAP to show pointer of mouse(text and graphics mode)

                                                                                                       solution

3) WAP to detect click(right/left/middle) of mouse

                                                                                                        solution

4)WAP to know co-ordinate of click of mouse

                                                                                                          solution


5)WAP to restrict click  of mouse in certain area.

                                                                                                         solution

Graphics related program

Graphics related program:-
-----------------------------------------------------------------------------------------------------------------------

how to activate graphics library in Turbo C++IDE           click for its video

programs' collection
----------------------------
1) WAp to draw a circle

                                                                                                                               solution

                                                                                                                               watch video

2)WAP to draw a rectangle.
                                                                                                                               solution

                                                                                                                              watch video
 
3)WAP to draw triangle.

                                                                                                                              solution
                                                                                                                              watch video
4)WAP to draw  a line.
                                                                                 
                                                                                                                             solution
                                                                                                                             watch video

5)WAp to display a text with background colour.


                                                                                                                          solution
                                                                                                                               watch video

6) program to understand outtext() and outtextxy().

                                                                                                                           solution
     
                                                                                                                            watch video
7) program to move a circle.

                                                                                                                          solution

                                                                                                                        w tach video                                                                                                                   

Data file handling related program:

Data file handling related program:
--------------------------------------------------------------------------------------------------------------------
1)WAP to store data/character in a datafile.
     or
   program to understand  putc() to store data(one character).

                                                                                                                               solution

2)WAP to read data/character from opened file.
   or
program to understand getc() to read a character from opened file.

                                                                                                                                 solution
 
WAP to store data/character in an opened file then read that character and print on screen in same program.
                                                                                                                                    solution.

                                                                                                     

3)WAP to store  integers in  a data file.
                                                                                                                                solution                                        or
   WAp to read that stored integers in previuos qusetion(3).
                                                                                                                             solution

or
Program to understand getw() to read,and putw() to store a number in an opened file in same program.

                                                                                                                                 solution 

4)WAP to store and read data stored in a data file (q3) using fprintf() and fscanf() function.
                                                                                                                               solution

5)WAP to store  roll,name and percentage of some students in  a data file.
or
                                                                                                                              solution
WAP to  read roll,name and percentage of some students from a data file (previous question).
or
                                                                                                                            solution
WAP to store and read roll,name and percentage of some students to /from a data file using same program.
                                                                                                                            solution

.
6) program to store data (employee name and salary) in a data file using fwrite().

                                                                                                                         solution
 program to read data stored in a datafile and print on screen using fread().

                                                                                                                           solution
Write a program to write/store record and read from data file. THis data file contains employee name and salary. Use fread () and fwrite().

                                                                                                                             solution
7)Write a program to store book_id,book_name and book_price of some books to a data file until you say 'n'. Then same file displays all records.
                                                                                                                          solution

8) USe 'struct ' concept to store employee id,first name and salary to a data file until you say 'n'. Then display all those stored records.

                                                                                                                       solution
9)Program to understand remove() function.

                                                                                                                       solution

                                                                                                                       solution       
10)Program to understand rename() function.

                                                                                                                       solution
                                                                                                                     
                                                                                                                        solution
                                                                                                                     
11) Program to understand ftell() function.

                                                                                                                      solution
12)Program to understand fseek() function.

                                                                                                                     solution
13)Program to understand rewind() function.

                                                                                                                     solution