Monday, August 22, 2011

Program to calculate the unknowns of simultaneous linear equations



#include<stdio.h>
#include<math.h>
int main()
{
int i,j,k,n;
float c,a[100][101],x[100];
printf("Enter the no. of variables:");

Read more!

Thursday, March 10, 2011

C++ program to add two Complex no. using this pointer



#include<iostream>
using namespace std;
class Complex
{
private:
float real,imag;
public:
Complex():real(0),imag(0){}

Read more!

Thursday, March 3, 2011

C++ program that illustrates the order of constructor and destructor invocation in nice way



#include<iostream>
using namespace std;
class Dept{
    private:
        int id;
        char name[30];
    public:
        Dept(){}

Read more!

Monday, January 24, 2011

program to store the information about students in file and retrieve information arranging in alphabetical order


#include<stdio.h>
#include<string.h>
int main()
{
    struct student
    {
        char name[20],address[20],phone[15];
        int roll;
    }s[20];
    int i,j,n;
    FILE *fp;

Read more!

Wednesday, January 19, 2011

Program to arrange the given names in ascending order

#include<stdio.h>
#include<string.h>
int main()
{
    int i,j,n;
    char name[15][20],temp[20];
    printf("Enter number of students:");
    scanf("%d",&n);

Read more!