Posts

Showing posts with the label introduction

Thank you, next! Linked List in C++; Lesson 5

Image
Hope you are following us from our first post about linked list, if so! lets continue with our linked list lesson, if not, don't worry, you can start form the beginning, here are links for you to review our previous lessons: Linked List; Lesson 1   Linked List; Lesson 2   Linked List; Lesson 3   Linked List; Lesson 4   Alright! lets begin our fifth lesson i.e deleting node.Now this is a feature of linked list which array doesn't provide. You can always overwrite any value in array but you cant delete it, but linked list gives you the opportunity to do so. Say, you have a linked list of 4 nodes and you are tasked to delete a node from that linked list asked by user at run time (This code will be quite similar to insert node code). For this, you'll be codding del() as follows: void del() {     node *temp = new node; //1     node *temp1 = new node; //2     node *temp2 = new node; //3    ...

Thank you, next! Linked List in C++; Lesson 3

Image
Hope you are following us from our first post about linked list, if so! lets continue with our linked list lesson, if not, don't worry, you can start form the beginning, here is a link for you to review our previous lessons: Linked List; Lesson 1   Linked List; Lesson 2   Alright! lets begin our third lesson. As we previously learnt about creating nodes and printing by using concept of linked list, further we learnt about inserting new node at head position. So today we'll try to insert nodes at: At some given/specified position.   Insert node at some given/ specified position:   Suppose you have a linked list with (say) three nodes and you are required to insert new node such as, after second node i.e your new node will become third node,third node will become forth node and so on. For this, you'll be codding insert() as follows: void insert() {     node *temp = new node; //1     node *temp1 = new...

Introduction to C#; Lesson 3

Image
Hope you are following us from our first post, if so! lets continue printing in c# lesson (windows form), if not, don't worry, you can start form the beginning, here is a link for you to review our first and second lesson: Introduction to C#; Lesson 1   Introduction to C#; Lesson 2   Alright! lets begin our third lesson. As we learnt about printing in textbox and label in previous lessons, lets move on to Messagebox in this lesson.    Messagebox: Lets give a quick introduction to Messagebox first, basically it can be used to : Display any message at run time such as Warnings Error message. Information, confirmation Prompting user to enter value and so on...  So basically if user leaves some value empty or something then messagebox comes in handy. As message box creates a pop-up screen on your window so user is bound to give attention to your message. User can't proceed until he/she reads the message and give appropriate input etc th...

Thank you, next! Linked List in C++; Lesson 1

Image
Couldn't let this opportunity just slide away! Lets talk about Linked List.  Linked list is basically a linear data structure which doesn't require consecutive memory location unlike array, rather it use pointers to point at next node. So you could say its can be used as alternative to array. To understand the concept, lets consider a linked list with three nodes,including the head node,something like the figure bellow: Here, each node consists of two parts, a part to store data and a part to store address of the next node, further we observe that there is a pointer that points to head node , this pointer is, you can say, the most important part of linked list as you can use this pointer to get to any node you want, also there is a pointer that points the last node ,this pointer too, plays very important role. Other than taking you directly to last node, it helps in adding new nodes. It may sound a bit overwhelming for now but trust me! Its very interestin...