Wednesday, 27 July 2016

If-Else Demo C Sharp

class Program
    {
        static void Main(string[] args)
        {
            int age;
            Console.WriteLine("Enter your age>> ");
            age = int.Parse(Console.ReadLine());
            if (age > 18)
                Console.WriteLine("Eligible");
            else

Tuesday, 26 July 2016

C++ Java Polymorphism

Stack Using Single Link List

#include<stdio.h>
#include<conio.h>
/*  **********************************
Girfa Student Help
Stack Using Single Link List
Programmer Name : Mritunjoy Sengupta
for DS program visit :http://girfahelp.blogspot.in/p/data.html
    *************************************/
typedef struct n
{
int data;
struct n *next;
}node;
node *start=NULL;
node* create(int);
void push(int);
void pop();
void print();

Double Link List Complete Program

#include<stdio.h>
#include<conio.h>

/* ************************************
Girfa Student Help
Double Link List Program
for More DS Program Visit : http://girfahelp.blogspot.in/p/data.html
Programmer Name : Mritunjoy Sengupta
   ***************************************
*/

typedef struct n
{
int data;
struct n *pre,*next;
}node;
node* start=NULL;

node* create(int);
void addfirst(int);
void addlast(int);
void addbefore(int);
void addafter(int);
void del(int);
void print();