Introduction Of C Language

0 comments

C language is the primary language of the computer system developed between 1969 and 1973 by Dennis Ritchie at Bell Telephone Laboratories. The initial development of ‘C’ occurred in AT&T Bell Laboratories. In 1978 Brain Kernighan and Ritchie published a definitive description of the language referred to as K & R version of C. Numerous C compilers and interpreters had been written for different Operating systems. This created some minor incompatibilities among different implementations of the language. Therefore, the ANSI (American National Standard Institute) worked on a standard version of C language.

C has different data types for different types of data and can be broadly classified as:
1. Primary data types
2. Secondary data types
These data types are illustrated in the Picture…

C is an all purpose programming language. It is equally suitable for generating high level application and low level application. C language encourages the users to write their own library function so that they can extend the features of the language and C program can be executed on any type of computers. The program written in C language can be converted into machine language more efficiently. Computer games can be generated in C language which is accomplished through the usage of sound graphics. Both low and high level programming can be done in C language. C language is the address manipulation which can be done through the usage of pointers. C software is usually known as “turbo3”. C is simple, fast, and efficient, the first stage for a programmer. Finally, C is close to hardware.

Why we use C firstly?
In today’s world of computer programming, there are many high-level languages to choose from, such as Pascal, BASIC, and Java. But C stands apart from all these languages. This is due to its many desirable qualities. It is a robust language whose rich set of built-in functions and operators can be used to write any complex logic program. The C language compiler combines the capabilities of a low level language with the features of a high level language. Therefore the language is suitable for writing both system software as well as business packages & other software. You will many compilers available in the market written in C.

The general way to write program in ‘C’ as-
#include
#include
void main ()
{
   printf (“Hello”);
   getch();
}
Here, output will- Hello

In this way, programs are written in “C”. Programs are of many types in ‘C’ as switch case programs, pointer programs, array programs, using functions programs etc. All have different uses on different places.
Finally, C is the primary basic language of Computer System…
Read full post »

Introduction of UNIX

0 comments
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuzvyEPwv1Qb0VHloP-qD5skhRM1c4bgx8Q7n5VK2c-itQUZ2K5jw2macc-U-GrQ3yboa9IAC4kru_Tgcb9NS3jwEK5PM7voWPDOQerymv29q54U3_tSaWuJ9HDz9CxVKP99FxcD8MT3qd/s1600/images.jpeg
Pronounced yoo-niks, a popular multi-user, multi-tasking operating system developed in the 1960s at the bell laboratory. Created by just a handful of programmers, UNIX was designed to be a small, flexible system used exclusively by programmers. UNIX is a highly programmable language (an operating system) and still regarded as one of the most powerful, versatile, and flexible operating system (OS) in the computer world. UNIX Systems have Graphical User Interface (GUI) facility like Microsoft Windows which to easy to use. The most famous varieties of UNIX are Sun Solaris, GNU/Linux, and MacOS X.

It was designed for a programmer not for a casual end-user. A programmer can easily operate UNIX operating system.

Multi-tasking Facility
Many computers do just only one thing at a time, as anyone who uses a PC or laptop can attest. But, on the other hand, UNIX lets a computer do several things at once, such as printing out one file while the user edits another file. This is a major feature for users, since users don’t have to wait for one application to end before starting another one.

Multi-user Facility
The computer can take the commands of a number of users, determined by the design of the computer to run programs, access files, and print documents at the same time. This is the best facility of UNIX.

It has fast speed with respect to others and it is mainly divided in three parts as follows-
1. The Kernel
2. The shell and
3. The programs.

The Kernel
It controls the hardware and turns part of the system on and off at the programmer’s command. If you ask the computer to list all the files in a directory then, the kernel tells the computer to read all the files in that directory from the disk and display them on your screen.

The Shell
Shell is used to act as an interpreter between the user and the computer as its purpose is same like Kernel. There are several types of shell as most notably the command driven Bourne Shell, the C Shell (no pun intended), and menu-driven shells that make it easier for beginners to use.

The Programs
There are hundreds of programs available to UNIX users. Typically, they are grouped into categories for certain functions, such as word processing, business applications, or programming.

The main features of UNIX are—
• Multitasking capability
• Multiuser capability
• Portability
• UNIX programs
• Library of application software

Finally, UNIX is the best operating system, very admired as today it is using by billions of peoples…
Read full post »

How to disable the "Turn Off Computer" button in windows XP?

0 comments
Who want to restrict the common users to shutdown public computer in common areas. You can disable the "Turn off Computer" button on the start menu and a common user will not "Turn Off, Restart and Stand By" a computer. Using registry editor, you can implement this task in all windows XP versions with minimum effort.

Follow the given steps to disable Turn off Computer" button on the start menu:

To use this feature, you will need to be logged into your computer with administrative rights.
Click Start button and type regedit in Run option then press Enter for next.

♥ Here locate the location to:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

♥ Here in right side panel, right click to create a new DWORD value with the name NoClose.


♥ Now assign number 1 in value data box and close the registry edito
♥ Now close the registry editor and restart your computer after any changes to go into effect.
But next time, if you want to enable "Turn Off Computer" button on start menu then simply change the value of data box to 0 or delete NoClose DWORD item.
Read full post »

How To Change Thumbnail Size And Quality

0 comments
If any of you out there like to use the thumbnail view, especially for browsing through photos and images, it can become a bit of a drain on your system. It is possible to lower the thumbnail size and quality by editing the following registry keys.

Open the registry and navigate to :

HKEY_CURRENT_USER\ Software\ Microsoft \ Windows\ CurrentVersion\ Explorer

Create a new DWORD value called ThumbnailSize, and set the value between 32 and 256.

And/or create another DWORD value called ThumbnailQuality, and set the value between 50 and 100.

Key Details :

USER Key: [HKEY_CURRENT_USER\ Software\ Microsoft \ Windows\ CurrentVersion\ Explorer]
Value Name: ThumbnailSize
Data Type: REG_DWORD (DWORD Value)
Data Value: 32 - 256

USER Key: [HKEY_CURRENT_USER\ Software\ Microsoft \ Windows\ CurrentVersion\ Explorer]
Value Name: ThumbnailQuality
Data Type: REG_DWORD (DWORD Value)
Data Value: 50 - 100
Read full post »

Change The Default Location For Installing Apps

0 comments
As the size of hardrives increase, more people are using partitions to seperate and store groups of files.

XP uses the C:\Program Files directory as the default base directory into which new programs are installed. However, you can change the default installation drive and/ or directory by using a Registry hack.

Run the Registry Editor (regedit)and go to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Look for the value named ProgramFilesDir. by default,this value will be C:\Program Files. Edit the value to any valid drive or folder and XP will use that new location as the default installation directory for new programs.
Read full post »

Introduction Of Turbo C++ graphics programming

0 comments
Intention of this tutorial is to make you comfortable with the basic concepts in graphics.If you want to learn graphics programming then Turbo C++ 3.0 is good choice.Under this tutorial i will cover some standard library functions,so you can probably figure out the remaining graphics functions on your own.Basically there are two diffrent modes,namely text mode and graphics mode.In text mode it is possibe to display or capture only text in terms of ASCII.But in graphics any type of figure can be displayed,captured and animated.
♥ First Impressions
To start with graphics programming,you have to set out some of the things on your own like compiler or it’s installation & configuration etc.Example in tutorial wil work no matter which compiler you use, of course some of the library functions have minor variations.I recommend using Turbo C++ 3.0,as it will be readily availbale and it is much easier to use.
♥ Requirement
If you want to start graphics programming then you need two files which are GRAPHICS.H and GRAPHICS.LIB. These files are provided as part of TURBO C++. Check these files. The graphic mode functions require a graphics monitor and adapter card such as CGA,EGA and VGA. I assume you have complete working compiler so here’s how to create circle on the screen.

/* Simple example to draw circle */
#include"graphics.h"
#include"conio.h"
void main()
{
int gd=DETECT,gm;
initgraph(&gd, &gm, "c:/tc/bgi ");
circle(330,180,100);
getch();
closegraph();
restorecrtmode();
}
♥ Code explaination
The first line to look at is: GRAPHICS.H ,this file contains definitions and explaination of all the graphic functions and constants.While GRAPHICS.LIB file contains standard graphic functions.
Turbo C++ graphic functions have two categaries :Text mode graphic functions and graphic mode functions.Here we are dealing with graphic mode function.so just forget about text mode function right now.To switch from text mode to graphic mode,we have function called as ” initgraph ” .
initgraph : This function initialises the graphic mode.It selects the best resolution and direct that value to mode in variable gm.The two int variables gd, gm are graphic driver and graphic mode respectively.The gm handles value that tells us which resolution and monitor we are using. The gd specifies the graphic driver to be used.In our program we have gd=DETECT means we have passed the highest possible value available for the detected driver.If you don’t want that value then you have to assign the constant value for gd,gm.The ” &” symbol is used for initgraph to pass address of the constants.
Path ( ” C:\\tc\\bgi”) : It specifies the directory path where initgraph looks for graphics drivers (*.BGI) first. If files are not there then initgraph will look for the current directory of your program.If it unable to find wihtin current working directory then it will parse an error.You can leave it blank ( ” ” ) if the *.BGI files are within the working directory.
Circle( ) : Circle function takes X and Y values with respect to top left corner of the screen and third co-ordinate is nothing but radius of circle.In our example we have passed X=330,Y=180 and radius equal to 100 in terms of pixels as arguments.
Closegraph( ) : The closegraph() swithces back the screen from grpahics mode to text mode. If you don’t use this function then you may have undesirable effects.Here this function is called afer the getch() function as screen shouldn’t switch to text mode till user hits any key.
Restorcrtmode( ) : This mode will restore the original video mode detected by initgraph function.
getch( ) : getch( ) function gets a character from console but does not echo it on screen.This is used to pause the screen till user hits any key.
Note:
1) Make sure you have entered the correct path for the include & library directories.You can change the path by pointing your mouse to : Options > Directories.Enter the valid path for the include directory and libraries,and output directories.
2) After installation of Turbo C,you have to adjust the settings of linker.Go to Options>Linker > Libraries> and then check the ” Graphics Library“.This will help to solve the linker errors for the graphics programs.Please do not uncheck any other option already selected by compiler.
3) Graphic initialisation depends on the path mentioned in initgraph path.Be sure to enter slash between c,tc,bgi.The path C & TC depends on user if he installed TC in d: drive then it will be d,tc.Read the above code’s path carefully.
4) If you want help on specific function then point your mouse to “Help> Contents“,and then browse the content for the function you want.If you want fast-help then put the cursor on the first letter of the function or term and press CTRL+F1,it will point you to the help file of that term/function.
Read full post »

Information about BCA Course

0 comments
Bachelor of Computer Application
( B.C.A ) is a new age educational course in the field of computer applications. This course ( program ) is of three years duration. The successful completion of this course leads to bachelors degree in computer application. Students after B.C.A can opt for post graduate course of M.C.A.
Read full post »

How to remove recycle bin from your desktop in win XP

0 comments
Open Regedit by going to START - RUN and type Regedit and hit enter.



Then you should navigate to following entry in registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E} and delete it. This action should remove recycle bin from your desktop.
Read full post »

C Programming Coding For DDA Algorithm

2 comments
void linedda(int xa,int ya,int xb,int yb) {

int dx=xb-xa,dy=yb-ya,steps,k;
float xincrement,yincrement,x=xa,y=ya;

if(abs(dx)>abs(dy)) steps=abs(dx);
else steps=abs(dy);

xincrement=dx/(float)steps;
yincrement=dy/(float)steps;

putpixel(round(x),round(y),2)

for(k=0;k<steps;k++) {
x+=xincrement;
y+=yincrement;
putpixel(round(x),round(y),2);
}
}
Read full post »

How to lock ur folder.....

0 comments
LOCK A FOLDER
first select a folder for example i'll use a folder name movies in D drive D:\movies\
in the same drive u create a text file and type
ren movies movies.{21EC2020-3AEA-1069-A2DD-08002B30309D}
and save it as loc.bat
again u type in a notepad as
ren movies.{21EC2020-3AEA-1069-A2DD-08002B30309D} movies
and save it as key.bat
now in D drive u can see two batch files loc and key.. when u double click loc the movie folder will change to control panel and whn u double click key the control panel will change to normal folder..
Try this out .....
It may be secure ur personal data......try n follow my blog......
Read full post »

Paisa Live

0 comments
Earn money I have something interesting for you - you can easily earn regular income online via PaisaLive.com!
It’s really amazing! You get paid to open & read the contents of PaisaLive mails. You also receive special discount coupons, promotions and free passes to various events in your city.
Join now and get Rs. 99 instantly, just for joining. What more, as a special bonus you get paid for inviting your friends also!
Create your PaisaLive Account & refer your friends to earn launch referral bonus on every new registration.
Read full post »