Sunday, March 31, 2013

Car race game in c++

Have you played this came before... I have created this game in C++, Simple and sweet game. /* Nice car game in C++ using Borland Turbo C++ Compiler. Set BGI Graphics path according to your pc's Trubo C BGI library. Here mine is c:\\turboc3\\bgi. Keyboard Controls to play the game ; *A - Move car left* *D - Move car right* *Enter/ESC to exit the game.* If your compiler's graphic library is not included then you will find many errors...

A JavaScript Calculator

Copy and paste this code in a notepad and save as a .html or .htm then open this file with any browser to run calculator program. <!--This is my JavaScript Calculator, Sharing complete source code--> <html> <head> <title> My Calcy </title> <script language="javascript"> var temp1=0,temp2=0,temp=0; var flag1=0,flag2=0,flag3=0,flag4=0; var last_input=0,cur_input=0; var last_operation=0,cur_operation=0; ...

Monday, March 25, 2013

Program to calculate power of any number with user defined function

Last time we calculated power of any number using inbuilt function power() declared in math.h here. But in this post we have our user defined power() function that works same as the built in function. Check this code: #include<stdio.h> #include<conio.h> int power(int,int); void main() { int x,n,result; printf("Enter number : \n"); scanf("%d",&x); printf("Enter power : \n"); scanf("%d",&n); result=power(x,n); printf("%d to the power %d is %d",x,n,result); getch(); } int power(int...

Wednesday, March 20, 2013

Program to use printf() without semicolon

A surprising program, printf() function call without semicolon !! Whenever we use a printf() function or any function which ends with semicolon ( ; ), and if we not place the semicolon at the end, then compiler gives an error like "Statement missing ;" Then how can we do this ?? Check this program which prints a static string without semicolon.. //Program which use no semicolon but prints an output using printf() function #include<stdio.h> void main() { if(printf("Hello")) { } } The logic behind is that, an  if...

Program to calculate ACSII value of characters, digits and symbols

Most of character and string operations are based on ASCII values. ASCII value is standard value for every character, digit and symbol in C compiler. There are 128 ASCII values but Extended ASCII can represent 256 characters. A Complete ASCII Table: A really long chart, hmmm !! Don't worry you don't need to remember these all values. You can find common ASCII values using a simple logic. What you need to do is - Take a character variable...

Program to reverse a string

Have you ever tried to reverse a string ?? strrev(), a function from string.h is able to do this. Just pass the string to the function and the string will be reversed. For example if you pass "Hello" as input then the output will be "olleH". Try different strings with this function to get reverse. Have Fun !! //Program to reverse a string #include<stdio.h> #include<conio.h> #include<string.h> int main() { char str1[80],str2[80]; int i; printf("Enter string 1\n"); gets(str1); strrev(str1); puts(str1); ...

Program to copy a string

Want to copy a string to another ?? Here is a function to copy value of a string to another string. This function strcpy() is also available in string.h header file of C Library. This function also takes two strings as arguments and copies second argument string  to first string. Check this program to learn more- //Program to copy a string using strcpy() #include<stdio.h> #include<conio.h> #include<string.h> int main() { char str1[80],str2[80]; int i; printf("Enter string 1\n"); gets(str1); ...

Program to concatenate two strings

In string.h header file there is another function to manipulate string, The strcat() function is used to concat two strings. This function takes both strings as parameters and joins them. Here is the example- //Program to concatenate two strings. //Concatenation means joining two strings. #include<stdio.h> #include<conio.h> #include<string.h> int main() { char str1[80],str2[80]; int i; printf("Enter string 1\n"); gets(str1); printf("Enter string 2\n"); gets(str2); strcat(str1,str2); ...

Program to find length of a string

If we want to calculate number of characters in a string then it can be done with the help of a function strlen(). This function takes a string as argument and then return the number of characters in string. As we know that index of array always starts with 0 and every character string contains a NULL character ('\0') . So this function counts the indices of string until it gets the NULL character. Check this program- //Program to find length of a string //This program will show how to calculate that how many characters are there in...

Program to compare two strings

After reading about string. Now we are comparing two strings. It is very easy to compare two numbers using some comparison operators (>,<,>=,<=,==,!=). But if we are talking about strings, these operators are not generally applicable to them. If we want to manipulate a string then we can use some inbuilt functions of string.h header file. Here we are using strcmp() function to compare two strings. This function takes two strings as argument for their comparison.If both strings are equal then it returns 0. If first string...

Program to use string (Character array)

Before we use string we should have an idea about "What is a String ??" A string is just a character array and follows all the properties of array. If we declare an array with char datatype then it will be called a string. Syntax: char array_name[size/limit]; Here in above syntax you see, we are using char as datatype of the array. String also has size or limit for characters as an integer array has. String is used to store character input like name, addresses etc. We can get a string input using scanf() function with %s format specifier...

Program to calculate x to the power n using power function of math.h

A simple program to calculate power of a given number. We have an inbuilt power() function in math.h. This function takes two arguments. Example: temp=power(num,pow); In above example the power() function is taking two arguments. First argument is a number and second one is power() for that number. So this function will return num to the power pow. We are using a temporary variable to hold the result because power() function returns a value. We can use inbuilt math.h functions for basic mathematical calculations. For example we can use...

Thursday, March 14, 2013

Program to swap two numbers without using temporary variable

/* Aim : program to swap to varibles without using temp variables*/ #include<stdio.h> #include<conio.h> int x,y; int swap(int x,int y) { x=x+y; y=x-y; x=x-y; printf("After swapping numbers are :\n first is %d\n second is %d",x,y); } int main() { printf("Enter first variables \n"); scanf("%d",&x); printf("Enter second varibles \n"); scanf("%d",&y); swap(x,y); getch(); } ...

Program to swap two numbers

/* Aim : program to swap to variables two numbers*/ #include<stdio.h> #include<conio.h> int x,y; int swap(int x,int y) { int temp; temp=x; x=y; y=x; printf("After swapping numbers are :\n first is %d\n second is %d",x,y); } int main() { printf("Enter first variables \n"); scanf("%d",&x); printf("Enter second varibles \n"); scanf("%d",&y); swap(x,y); getch(); } ...

Program to calculate Compound Interest

#include<stdio.h> #include<conio.h> #include<math.h> int main() { int p; float r,t,c,x,ci; printf("Enter Principal money : "); scanf("%d",&p); printf("Enter rate of interest : "); scanf("%f",&r); printf("Enter time of interest : "); scanf("%f",&t); t //formula for compound interest is p*(1+r/100) x=1+r/100; c=pow(x,t); ci=p*c; printf("Compound interest id %2.2f",ci); getch(); } ...

Program to calculate Simple Interest

//Program to calculate simple interest #include<stdio.h> #include<conio.h> int main() { int p; float r,t,si; printf("Enter Principal money : "); scanf("%d",&p); printf("Enter rate of interest : "); scanf("%f",&r); printf("Enter time of interest : "); scanf("%f",&t); si=(p*t*r)/100; printf("\nSimple Interest is: %2.2f",si); getch(); } ...

Program to implement Call by Reference (CBR)

Before understanding call by reference, you should have an idea of call by value. When we passes reference of arguments to a function as actual argument and uses pointer in function definition as formal argument then it will be call by reference. Pointer:  It is a type of variable which holds address/reference of another variable. The terms call by value and call by reference are used together. The difference is that in call by value, a copy of actual arguments is passed whereas in call by reference, reference (address) of arguments...

Program to Implement Call By Value (CBV)

When we passes any argument to a function, a copy of the arguments is passed to the function. If we change value of the arguments in the function it will not affect the original arguments which are passed to the function. This is called Call by Value. The arguments which are passed to a function are known as Actual arguments and the arguments declared in function definition is known as Formal arguments. In call by value Formal arguments contains copy of actual arguments. In  following example "a" and "b" are the Actual arguments which...

Sunday, March 10, 2013

Program to convert temperature

/* Aim : program to convert tempreture Farenheit to Celcius Celcius to Fahrenheit*/ #include<stdio.h> #include<conio.h> int choice,a; float f,fare,c,cel; int ftoc(); int ctof(); int main() { printf("\t\t\tTempreture Calculator\n"); printf("\t\tPress 1. to Convert Farenheit to Celcius\n"); printf("\t\tPress 2. to Convert Celcius to Farenheit\n"); printf("Enter your choice : "); scanf("%d",&choice); switch(choice) { case 1: ...

Program to generate Fibonacci series using recursive function

/* Aim : Program to print fibonacci sequence using recursive function*/ #include<stdio.h> #include<conio.h> int fib(int a); int main() { int n,f,i; printf("Enter limit : "); scanf("%d",&n); printf("Fibonacci sequence is :-\n"); for(i=1;i<=n;i++) printf("%d ",fib(i)); getch(); } int fib(int a) { if(a==1) return 1; if(a==0) return 0; else return fib(a-1)+fib(a-2); } ...

Program to print Fibonacci series

/* Aim : Program to Print Fibonacci series Created by : Lucky Date : 18/09/2010 */ #include<stdio.h> #include<conio.h> int main() { int i,k=1,j,sum=0,n; printf("enter limit : "); scanf("%d",&n); printf("sequence is :-\n"); for(i=1;i<=n;i++) { j=k; k=sum; sum=k+j; printf("%d,",sum); } getch(); } ...

Program to print reverse digits of a number using array

/*Aim: program to print opposite using array*/ #include<stdio.h> #include<conio.h> long int a,i,array[10]; int main() { printf("enter digits : "); scanf("%d",&a); printf("enter number : "); for(i=1;i<=a;i++) { scanf("%d",&array[i]); } for(i=a;i>=1;i--) { printf("%d",array[i]); } getch(); return(0); } ...

Program to print reverse digits of a number using mathematical logic

/*Aim: program to print reverse using mathematical logic*/ #include<stdio.h> #include<conio.h> int i,n,b; int main() { printf("Enter number : "); scanf("%d",&n); while(n>0) { b=n%10; n=n/10; printf("%d",b); } getch(); } ...

Program to calculate factorial using recursive function

/*Aim: program to calculate factorial using recursive function*/ #include<stdio.h> #include<conio.h> long int n,f; long int fac(long int n); int main() { printf("Enter number whom you want factorial : "); scanf("%ld",&n); f=n*fac(n-1); printf("factorial is %ld",f); getch(); return 0; } long int fac(long int n) { if(n==0) return 0; if(n==1) return 1; else return n*fac(n-1); } ...

Program to find factorial

/*Aim: program to calculate factorial*/ #include<stdio.h> #include<conio.h> long int n,i,f=1; int main() { printf("Enter number : "); scanf("%ld",&n); for(i=1;i<=n;i++) { f=f*i; } printf("Factorial is : %ld",f); getch(); return(0); } ...

Program to calculate GCD using recursive function

/* Aim : program to find GCD using recursive function Created by : Lucky Date : 20/09/2010 */ #include<stdio.h> #include<conio.h> int a,b,g; int gcd(int a,int b); int main() { printf("Enter numbers whom you want GCD \n"); scanf("%d%d",&a,&b); g=gcd(b,a%b); printf("GCD is : %d",g); getch(); return(0); } int gcd(int a,int b) { if(b==0) return a; else return gcd(b,a%b); } ...

Program to calculate GCD

/* Aim : program to print GCD*/ #include<stdio.h> #include<conio.h> int a,b,i,k; int main() { printf("Enter numbers whom you want GCD \n"); scanf("%d%d",&a,&b); for(; ;) { i=a%b; if(i==0) break; a=b; b=i; } printf("GCD is : %d",b); getch(); } ...

Program to check a number is prime or not

/* Aim : Program to check a number is prime number or not*/ #include<stdio.h> #include<conio.h> int main() { int i,n,f=1; // Here f is flag variable which is used as Boolean value printf("Enter no. to be checked\n"); scanf("%d",&n); for(i=2;i<=n/2;i++) { if(n%i==0) { f=0; break; } } if(!f) printf("%d is Not a prime number",n); else printf("%d is a prime number",n); getch(); } ...

Program to find second largest number in the list using sorting method

/* Aim : Program to find second largest number in the list using sorting method*/ #include<stdio.h> #include<conio.h> void main() { int n,i,array[50],j,temp; clrscr(); printf("How much number you want to insert\n"); scanf("%d",&n); printf("Enter numbers\n"); for(i=0;i<n;i++) { scanf("%d",&array[i]); } for(i=0;i<n;i++) for(j=0;j<n;j++) if(array[i]>array[j]) { temp=array[i]; array[i]=array[j]; array[j]=temp; } printf("After...

Program to find GCD and LCM of two numbers

/* Aim : Program to find GCD & LCM of two numbers*/ #include <stdio.h> #include <conio.h> int a,b,g,l; int gcd(int a,int b); int main() { printf("enter numbers whom you want to find GCD \n"); scanf("%d%d",&a,&b); g=gcd(b,a%b); printf("GCD is : %d\n",g); l=(a*b)/g; printf("LHS is : %d",l); getch(); } int gcd(int a, int b) { if(b==0) return a; else return gcd(b,a%b); } ...

Program to use different user defined functions for lines

/* Aim : program to use functions of lines*/ #include<stdio.h> #include<conio.h> void minusline ();//prototype void plusline(); void starline(); void equalline(); void nlines(); int main() { nlines(); //function call getch(); } // function definitions . . . . . . . . . . . . . . . . . . . . . void minusline() { int i; for(i=0;i<80;i++) { printf("-"); } } void plusline() { int...

Program to sort (order) element of an array

/*Aim : program for array sorting*/ #include<stdio.h> #include<conio.h> long int x[20],i,j,temp; int main() { printf("\t\t\t Enter five numbers \n"); for(i=0;i<5;i++) scanf("%lu",&x[i]); printf("\t\t\tBefore sorting \n"); for(i=0;i<5;i++) printf("%lu\n",x[i]); //***********Descending sorting******** for(i=0;i<5;i++) for(j=0;j<5;j++) if(x[i]>x[j]) { /* if we want it Ascending then only...

Program to find value at any index in array

/* Aim : program to find no. in array list*/ #include<stdio.h> #include<conio.h> int main() { int i,pos,a[10]; printf("Enter the numbers in array\n"); for(i=1;i<=10;i++) { printf("a[%d]\n\n=",i); scanf("%d",&a[i]); } for(i=1;i<=10;i++) { printf("a[%d]=%d\n ",i,a[i]); } printf("\n\nEnter the position of the element : "); scanf("%d",&pos); printf("\na[%d] = %d", pos, a[pos]); getch(); } ...

Saturday, March 9, 2013

Program to calculate average of n numbers with the help of array

/* Aim : Program to calculate average using array*/ #include<stdio.h> #include<conio.h> int main() { int array[5],i,n,sum=0; float avg; printf("How much numbers you want to be averaged : "); scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&array[i]); sum=sum+array[i]; } avg=sum/n; printf("Average=%2.2f\n",avg); getch(); } ...

Program to implement a simple function

/* Aim : program to implement a simple function In this program we are creating simple add() function which takes two numbers as input and some of them as output*/ #include<stdio.h> #include<conio.h> void add(); // Function prototype or signature int main() { clrscr(); add(); // Function calling add(); getch(); } void add() // Function definition { int x,y; printf("enter two no."); scanf("%d%d",&x,&y); printf("sum is %d\n\n",x+y); } ...

Program of menu driven calculator using switch case

/*Aim : program of menu driven calculator using switch case*/ #include<stdio.h> #include<conio.h> #include<process.h> int ch,a,b; int main() { printf("\t\t\t CALCULATOR PROGRAM"); printf("\n\n\n\t\t 1.input no."); printf("\n\t\t 2.add.no."); printf("\n\t\t 3.sub no."); printf("\n\t\t 4.exit"); printf("\n\n\n enter choice : \t"); scanf("%d",&ch); switch (ch) { case 1: printf("enter two no.\n"); scanf("%d%d",&a,&b); ...

Program to implement switch case

/*Aim : program to impliment switch case*/ #include<stdio.h> #include<conio.h> #include<process.h> int i; int main() { printf("enter i"); scanf("%d",&i); switch(i) { case 1: printf("i am in case 1"); break; case 2: printf("i am in case 2"); break; case 3: printf("i am in case 3"); break; default: exit(0); } getch(); } ...

Programs to know differences between getch(), getche() and getchar()

This post will explain major difference between getch(), getche() and getchar() functions. All of these functions get character input from user. Generally it is determined that getch() function is used  to  freeze console output. But it happens because whenever getch() function is called it waits for input of keyboard. Until the input is given getch() freezes the output screen. After getting input from user program continues. getche() also takes character input from keyboard and it also freezes output screen but the difference between...

Program to generate a square table

/*Aim : program to generate square table*/ #include<stdio.h> #include<conio.h> int i,n; int main() { printf("enter Limit : "); scanf("%d",&n); for(i=1;i<=n;i++) { printf("Square of %d is %d\n",i,i*i); } printf("\n"); getch(); } ...

Program to print 5 numbers using array

/*Aim : program to print 5 no. given by user using array*/ #include<stdio.h> #include<conio.h> int x[5],i; int main() { printf("enter 5 no.\n"); for(i=0;i<5;i++) scanf("%d",&x[i]); printf(" the nos. are \n"); for(i=0;i<5;i++) printf("%d\n",x[i]); getch(); } ...

Program to print 5 numbers using normal method

/* Aim : program to print 5 no. given by user by simple mtd*/ #include<stdio.h> #include<conio.h> int a,b,c,d,e; int main() { printf("enter no.\n"); scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); printf("\n\nEntered numbers are\n"); printf("%d\n%d\n%d\n%d\n%d\n",a,b,c,d,e); getch(); } ...

Program to check whether a number is even or odd

/*Aim :program to check odd and evon*/ #include<stdio.h> #include<conio.h> int i; int main() { printf("enter no.\n"); scanf("%d",&i); if(i%2==0) { printf("number is evon \n"); } else { printf("number is odd \n"); } getch(); } ...

Program to calculate area of triangle using Hero's formula

/*Aim :program to calculate area of triangle with the help of HERO's formula*/ #include<stdio.h> #include<conio.h> #include<math.h> int a,b,c; float S,A; int main() { printf("enter a,b,c\n"); scanf("%d%d%d",&a,&b,&c); S=(a+b+c)/2; A=sqrt(S*(S-a)*(S-b)*(S-c)); printf("Area is %2.2f\n",A); getch(); } ...

Program to calculate area of triangle using base and height

/*Aim :program to calculate area of triangle*/ #include<stdio.h> #include<conio.h> int b,h; float A; int main() { printf("enter base and hight\n"); scanf("%d%d",&b,&h); A=(b*h)/2; printf(" Area is %2.2f",A); getch(); } ...

Program to calculate area and perimeter of a rectangle

/*Aim : program to calculate area and perimeter of a rectangle*/ #include<stdio.h> #include<conio.h> int l,w,A,P; int main() { printf("enter length and width\n"); scanf("%d%d",&l,&w); A=l*w; P=2*(l+w); printf(" Area is %d\n perimetre is %d\n",A,P); getch(); } ...

Program to calculate area and circumference of a circle

/*Aim :program to calculate area and circumference of a circle*/ #include<stdio.h> #include<conio.h> int r; float A,C; int main() { printf("enter radius\n"); scanf("%d",&r); A=3.14*r*r; C=2*3.14*r; printf(" \n\n Area is %2.2f\n\n\n Circumference is %2.2f\n",A,C); getch(); } ...

Program to print multiplication tables between two limits

/*Aim : program to generate multipal tables between two limits*/ #include<stdio.h> #include<conio.h> int i,n,m,j; int main() { printf("enter first limit : "); scanf("%d",&n); printf("enter second limit : "); scanf("%d",&m); for(i=n;i<=m;i++) { for(j=1;j<=10;j++) { printf("%d*%d=%d\n",i,j,i*j); } getch(); clrscr(); } } ...

Program to print multiplication table

/*Aim : program to generate multipal table*/ #include<stdio.h> #include<conio.h> long int i,n; int main() { printf("enter no."); scanf("%ld",&n); for(i=1;i<=10;i++) { printf("%ld*%ld=%ld\n",n,i,n*i); } getch(); } ...

Program to print odd numbers

/*Aim : program to print odd nos.*/ #include<stdio.h> #include<conio.h> int i; int main() { printf(" evon nos.\n"); for(i=1;i<=10;i=i+2) { printf("%d\n",i); } printf("\n"); getch(); } ...

Program to print even numbers

/*Aim : program to print even nos.*/ #include<stdio.h> #include<conio.h> int i; int main() { printf(" evon nos.\n"); for(i=0;i<=10;i=i+2) { printf("%d\n",i); } printf("\n"); getch(); } ...

Program to print 1 to 10 using for loop

A new term Loop In programming languages loop is used for repetitive execution of statements for certain conditions. Basically three types of loops are available : For loop While loop Do-While loop Complete tutorial on loops and break and continue here In below program we are using for loop to generate counting of 1 to 10, easiest program to understand concept of loop: /*Aim : program to print nos. from 1 to 10*/ #include<stdio.h> #include<conio.h> int i; int main() { printf("nos. from 1...

Program to compare two numbers using if else

The term conditional statements is used for If, If-Else,Switch etc. Conditional statements are used to execute a block of code for a specific condition. Want complete explanation on conditional statements : visit After getting idea about conditional statements now check this program, this program is using if-else statement to compare two numbers : /*Aim : program to compare two no.(if, else)*/ #include<stdio.h> #include<conio.h> int a,b; int main() { printf("enter no."); scanf("%d%d",&a,&b); ...

Program to calculate remainder

If you don't know what is Remainder ?? Check this...  We use % (modulus) operator in c to calculate remainder. This operator works on integer type. Because if we use float type variable then there will be no remainder and resultant will also be in float type. This program will calculate remainder - /*Aim : program to calculate remainder*/ #include<stdio.h> #include<conio.h> int a,b,c; int main() { printf("enter no."); scanf("%d%d",&a,&b); c=a%b; printf("%d is remendar",c); getch(); }...

Program to perform all arithmetic operations

/*Aim :program to perform all arithmetic operations*/ #include<stdio.h> #include<conio.h> float a,b; int main() { printf("enter no.\n"); scanf("%f%f",&a,&b); printf("Sum is : %2.2f\n",a+b); printf("Difference is : %2.2f\n",a-b); printf("Multiplication is : %2.2f\n",a*b); printf("Dicision is : %2.2f",a/b); getch(); } ...

Program to divide two numbers

/*Aim :program to divide two no.*/ #include<stdio.h> #include<conio.h> float a,b,c; int main() { printf("enter two no."); scanf("%f%f",&a,&b); c=a/b; printf("division is %2.2f",c); getch(); } ...

Program to multiply two numbers

/*Aim : program to multiply two no.*/ #include<stdio.h> #include<conio.h> int a,b,c; int main() { printf("enter two no."); scanf("%d%d",&a,&b); c=a*b; printf("product is %d",c); getch(); } ...

Program to subtract two numbers

/*Aim : program to subtract two no.*/ #include<stdio.h> #include<conio.h> int a,b,c; int main() { printf("enter two no."); scanf("%d%d",&a,&b); c=a-b; printf("sum is %d",c); getch(); } ...

Program to add two variables

After adding two constant values now we are adding two variables. In this program we are taking two variables a and b of integer type. And a variable c to store the result of a+b. Value of a and b will vary according to user input. Try this program : /*aim : program to add two variables*/ #include<stdio.h> #include<conio.h> int a,b,c; int main() { printf("Enter two no. : "); scanf("%d%d",&a,&b); c=a+b; printf("sum is %d",c); getch(); } ...

Program to add two constants

After printing a simple "Hello" word. Now its turn to do little advance.... Before learning this you should be familiar to data types and basic operators used with C language. Here in this program we are adding two constant values and assigning that value to a variable. And then we are printing that variable using printf() function. Isn't it simple ? /*Aim : program to add two constants*/ #include<stdio.h> #include<conio.h> int c; int main() { c=4+5; printf("sum is %d",c); getch(); } ...

Program to print Hello

Welcome to the world of C Programming Before you see this most basic program you should know : Header file : In easiest manner we can say that a header file contains definition of predefined functions and macros. Extension of a header file is .h. We have many header files in directory of C compiler. Most common of them are "stdio.h" and "conio.h" . We use two type of syntax to use these header files- #include<filename.h> #include"filename.h" If we want to use any predefined function then we can use header file associated with that...

Wednesday, March 6, 2013

Audio and Video Synthesis and Recognition

Audio and Video synthesis & recognition: It is the latest technique evolved (invented) by current operating system. Basically audio and video speech synthesisers are invented for easy to use and reduce the efforts of users for any particular system. Audio speech synthesiser is used for conversion of typing commands or text commands in the form of modulated audio input. There is a predictive dictionary available for matching the modulated input. If the modulated input and the predictive text are match completely then user can collect accurate...

HTTP Requests and Web Server

HTTP: It is a type of protocol which deals with the web information regarding to the client request. It provides some security for the demanding URLs (Unified/Uniform Resource Locater). Common URL refers to files, directories, or objects that perform complex tasks like database lookup and internet searches. There are two types of requests available for the HTTP –                                I.            HTTP...

DBMS

Data: Unprocessed information (Row facts and figure). Information: Processed Data. Data Information Naveen Dau Nirmal Jyoti Jyoti Naveen Dau Nirmal Priya Priya Database: Collection of data in interrelated manner. Keys: Primary key: It will be unique in table. Like – University enrolment number. Foreign key: A primary key of a table used as a reference key in another table called foreign key. Composite key: It is...

Data Access Object (DAO)

Data Access Object (DAO): The Microsoft Data Access Object (DAO) is an approach of database programming which is similar to ODBC. In this approach instead of using CRecordset and CDatabase, we use CDaoRecordset and CDaoDatabase. Features of DAO are – 1.     DAO is a set of COM interface. These interfaces are set of pure virtual functions. 2.     The required COM model is located in DAO350.DLL. 3.     It has support for Jet Database engine. 4.     The Visual...

Powered by Blogger.