Posts

Showing posts from 2018

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     int pos;//4     cout << "\nEnter the node you want to d

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

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   Alright! lets begin our 4th 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 and a t some given/specified position. So today we'll try to insert nodes at: At position specified by user at run time.   At position specified by user at run time: If you understood lesson 3,this will be a piece of cake for you. So what we are trying to do here is just to replace a specific position in code with the position given at run time by user. For this you'll be codding insert() as follows: void insert() {     node *temp = new node; //1     node *temp1

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 node; //2     node *temp2 = new node

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

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 first lesson: Linked List; Lesson 1   Alright! lets begin our second lesson. As we previously learnt about creating nodes and printing by using concept of linked list, today we'll try to insert nodes at various locations At head node. At some given position. At position specified by user at run time.     Insert node at head node: Now we hope and assume you grasped the concept of linked list quite well from our first lesson, so first lets jump to insert_start() function. Suppose you have a linked list with (say) three nodes and you are required to insert new node such that it replaces head node,i.e your new node will become head node,head node will become second node and so on. For this, you'll be codding insert_start() as follows: void insert_s

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 thus prompting use