Diberdayakan oleh Blogger.
"DbClix"BismaClix.com - Inovasi Baru PTC Indonesia"Zonaclix - A Place to Earn online!"DbClix"Zonaclix - A Place to Earn online!"BismaClix.com - Inovasi Baru PTC Indonesia"Bux7"" ""SentraClix" lind4clix"Smileclix - PTC Indonesia dengan support profesional!

Selasa, 07 Juni 2011

linked list

linked list
tidak ada data


#include<iostream>
#include<conio.h>
using namespace std;
void main(){
    struct node
    {
        int data;     //will store information
        node*next;    //the reference to the next node

    };
    node*head=NULL;    //create head
    node*newNode;      //create a temporary node
    int nilai=10;
    //add@front
    newNode=(node*)malloc(sizeof(node));//allocate space for node
    newNode->data=nilai;
    newNode->next=head;
    head=newNode;
    _getch();
}

Comments :

0 komentar to “linked list”

Posting Komentar

 

Copyright © 2009 by Bisnis Online

Template by Blogger Templates | Powered by Blogger