2,180 Topics

Member Avatar for
Member Avatar for sam7777777

hi friends ... this is my 1st post I'm sure it gonna be beneficial to me.. Well I'm facing problem in this assignment.As I'm not that good in c++ programming. Please help me out .We have to use doubly linked list. **Assignment requirements Overview** You are expected to write a …

Member Avatar for Moschops
0
950
Member Avatar for abousetta

How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user.

Member Avatar for maheshd13
0
191
Member Avatar for abousetta

Write a C++ code that implements a doubly linked list structure that contains float elements, and then do the following: 1. Implement a function DisplayDequeue(…) that displays the inserted elements in a way like the dequeue function in the queue, Example: input= 1.5 , 3.5, 10, 0.5 output= 1.5, 3.5, …

Member Avatar for Schol-R-LEA
0
358
Member Avatar for abousetta

How To Implement Using Double Linked List Structure in C++ function DisplayEven(...) that displays only the even elements inserted by the user.

Member Avatar for tinstaafl
0
68
Member Avatar for vegaseat

This is an example of a singly linked list allowing you to enter a number of names and associated ages. The twist is that the names are inserted into the list in ascending order. When the list is displayed, it is already sorted by name. Note: This is not an …

Member Avatar for Ancient Dragon
1
470
Member Avatar for haider885

Helloo... I am making a simple notepad program. I don't know how to move cursor using ASCII Table. I am using Two way doubly Linked List method to insert characters. And file handling to save on file. I don't know how to move cursor on up, down, right and left. …

Member Avatar for Ancient Dragon
0
678
Member Avatar for haider885

Can Any body do it???? These are Some Info..... Create a notepad that allows the user to write text on the console. For this purpose, the user should be able to control and track the movement of the cursor. The user can access, add and delete any part of the …

Member Avatar for Ancient Dragon
0
767
Member Avatar for alaa zoghpy
Member Avatar for rubberman
0
61
Member Avatar for Sara_6
Member Avatar for H_beginner

Can any one tell me what I am doing wrong. I am sorting a single linked list. void ll::sort() { for(int i=0;i<size-1;i++) {node *cptr = fptr; for(int j= 0;j<size-1;j++) { if((cptr->no) > (cptr->nxt->no)) { if(cptr == fptr) { node *c2ptr = cptr->nxt; cptr->nxt=c2ptr->nxt; c2ptr->nxt=cptr; fptr = c2ptr; } else { …

Member Avatar for richieking
0
314
Member Avatar for hendraligawan

I have a problem when I do my task. task: Made a program about queue in Bank teller system. Teller A if deposit <=10million, teller B > 10million the count of customer(queue) is random and the price if deposit is random too. output: how much customers,time and total transaction at …

Member Avatar for hendraligawan
0
200
Member Avatar for tensity

I am creating a doubly linked list in fortran. Pretty much everything is working correctly. Although, I am having one issue... I build the list properly, but when printed to the screen, I get jumble for the first and last lines. Here is my code DO WHILE (.NOT. quit .AND. …

Member Avatar for tensity
0
471
Member Avatar for COKEDUDE

I am trying to print an array of linked lists. I am having trouble getting it to print. Here is my struct. typedef struct VERTEXTAG { char c; bool isvisited; struct EDGETAG* p; }VERTEX; typedef struct EDGETAG { VERTEX* v; struct EDGETAG* q; //cookies rock //I like cookies }EDGE; Here …

Member Avatar for Ancient Dragon
0
278
Member Avatar for COKEDUDE

When doing a linked list of chars with just a single character do you think it's better to use pointers in your struct like this? Typedef struct String_Node { Struct String_Node* next; Struct String_Node* prev; int id; char* c; } String_Node_t; Or better to not use a pointer with the …

Member Avatar for deceptikon
0
946
Member Avatar for moh2013

Hi im creating a linked list with these data types etc int account_number char firstName[10] char lastName[10] float total_Balance would anyone give a simple instruction to input/output these. i have tried everything but still doesnt work so far i have done this. #include<iostream> using namespace std; struct account_query { int …

Member Avatar for saeidzamani
0
135
Member Avatar for Frank_5

//Description: Binary Search Tree with array implementation, it has inorder, postorder and pre order traversals. //Note: it is not advisable to use array in binary search tree because it consumes a lot of memory in the long run // instead use linked list this is just a reference to understand …

Member Avatar for surajsokasane
0
10K
Member Avatar for GamerDJX

I am currently working on a project for class that reads in from a .txt file the names of a film, the year it was made, and the list of actors in said film, and sorts the info in a binary search tree. In the tree nodes, I have the …

Member Avatar for GamerDJX
0
252
Member Avatar for VBOI

Instead of entering text to console, I want to use the text from a text file and use this function and method to do a concordance count of words and how many times they appear in the text file. check line 137 #include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> #include<ctype.h> #include …

Member Avatar for iamthwee
0
180
Member Avatar for mbarandao

Hello: I need some assistance with a jquery/javascript code. I have a form with chain-linked list box of product, and prices. Each product is inside a <tr> which are added as needed. So there can be many items added to the form. The total of the items cost (qty*cost) from …

Member Avatar for mbarandao
0
753
Member Avatar for suhasgh

Hi, i'm trying to delete last node of linked list and print the remaining list at each step. for this i created 'Print' function. please take a look at this code: struct Node{ int data; Node *next; }; void Print(Node *head){ if(head==0) return; else{ Node *temp=head; Node *prev=head; while(temp!= NULL){ …

Member Avatar for ookhan
0
188
Member Avatar for Student22

Write a new method named count(E o) that returns the number of elements in the list that are equivalent to the specified object. Write a new method named reverse() that reverses the order of the nodes in the list. Can you figure out a way of doing this non-recursively in …

Member Avatar for JamesCherrill
0
282
Member Avatar for mehdix

Hi All, I was assigned to code a project which to some extend simulates timetable of an airport. This has to be implemented using linkedLists. The poject should consist of Node class and SLL (singly linked list) class. The logic of the project is like this: There should be a …

Member Avatar for deceptikon
0
277
Member Avatar for ik1610

Hello! I am trying to implement a persistent data structure using a vector of linked lists, but each time I am adding the modified list to the vector, all the old entries seem to be updated... Could you please help me? Definition of the vector of linked lists (the list …

Member Avatar for sepp2k
0
307
Member Avatar for entities

Hi I am currently searching for entities in this case study and I am hoping to create an entity relationship diagram after I have found all the entities. So far I have managed to come up with the following entities Members Group members Organised club racing Training sessions Boat Design …

Member Avatar for LastMitch
0
256
Member Avatar for wakz_1

I have created a linked list and I wish for the user to enter a Station and then the output is the number stored for that station. LinkedList myList = new LinkedList(); myList.addFirst("London", 5); myList.addNode("Manchester ", 10); myList.addNode("Liverpool", 20); myList .addNode("Birmingham", 50); This is the input for the user to …

Member Avatar for rubberman
0
1K
Member Avatar for AlWreikat

I want to write a C code that reads billions of integers from a text file. Each integer is of length 10 digits (e.g. -2311872000). then I build a linked list to store these integers.how could I do that ?

Member Avatar for rubberman
0
535
Member Avatar for wadeed

I want to create an algorithm which shows how to create a linked list that could store a database of animals ie its species and physical features etc can any one help me

Member Avatar for amina.bm
0
173
Member Avatar for woomar

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Member Avatar for somjit{}
0
244
Member Avatar for woomar

Hi. I need help with my size method. I am using a single-linked list. I tested my code and it returns 0 all the time. /** This method returns the size of the current list. <br> * If the current list has no elements,it is empty. <br> * * @return …

Member Avatar for JamesCherrill
0
265
Member Avatar for woomar

Hi. Everyone. I have a single-linked list and I need to implement an add method. I need to traverse the list (it needs to be in increasing order) and place the parameter object inside. There won't be duplicates. How do I go about doing this? public void add(G element) { …

Member Avatar for JamesCherrill
0
165
Member Avatar for patel.jeel92

This is the code that I have so far but does not work. When called, the metod returns a pointer whose first and last points to null. The "given" linked list a linked list that we have to make using the add method from the inherited Linked List class. public …

Member Avatar for JamesCherrill
0
159
Member Avatar for numbplum

**** Hey guys, I really need help on this. I just submitted my exam but I won't get feedback till next week. I'm hoping that you guys can help me review. Thanks! Question 1 For each non-static data member of a class, C++ allocates only one memory space. Question 1 …

Member Avatar for rubberman
0
837
Member Avatar for dogface13

Hi Daniweb community, I have implemented a node class, DoublyLinkedList class and a SinglyLinkedList class. For each DoublyLinkedList node created, there is supposed to be a reference to a NEW SinglyLinkedList. Meaning each DLL Node has its own SLL. I have such a reference created which is a single node …

Member Avatar for dogface13
0
322
Member Avatar for TalentedIndividual

hello fellow programmers, i am doing an assignment for class and i am having a bit of trouble. So the assignments reads Given two sorted (in ascending order) lists of size M and N, write an O(M+N) algorithm to find the sorted (also in ascending order) union of the two …

Member Avatar for tinstaafl
0
535
Member Avatar for Williams2222

I need to implement an interpolation search on a linked list, I have some code but I'm getting errors whenever I search anything that isn't the first element. Even if the element I'm searching for is in the list, if it isn't the first one it returns a -1. int …

Member Avatar for Ancient Dragon
0
830
Member Avatar for dnanassy

Hi folks! I need some homework help. I have the following requirements: // Strings required for Homework. String[]strVector = {"octhkeugrk", "fedjigchba", "mnpqdetjhz", "bgxlvfcdaz"}; a) Write code that transforms the string array provided above into a 2 dimensional character matrix, (e.g., char[][] charMatrix;). b) Once in the two dimensional array form, …

Member Avatar for somjit{}
0
785
Member Avatar for codemonster

I'm trying to overload the assignment operator. The objective is to copy two linked lists. I copy the first element fine, but for some reason the second loop around I encounter a null pointer and my loop ends on me. My brain is fried from over-studying and I can't think …

Member Avatar for irum.nageen.3
0
14K
Member Avatar for DGULLIVER

Good Afternoon, I have 2 senarios to which I need some clarification. I have an Access 2010 frontend with linked tables to mySQL using ODBC. Senario 1: I need to add a few fields to the main table and the software is used 24/7 if I add new fields will …

0
138
Member Avatar for srivardhanms

Hi, Can anyone give me an efficient algorithm for adding an element into a sorted matrix of linked list such that the size of the columns remains constant. Thank-you, Sri

Member Avatar for srivardhanms
0
484
Member Avatar for chetanbhasin

I recently tried compiling an example linked at Mongoose project's website using code::blocks and got certain errors. As I do not know where I went wrong I will list everything that I did in the process. 1. Created a new C++ console application project in Code::Blocks for Windows 2. Copy …

Member Avatar for Ancient Dragon
0
659
Member Avatar for pankaj.leon

> WE'll be taking inorder traversal of the tree and during the traversal will modify the right pointers only(using method "make_right") such that a linked list is formed having only valid right pointers. Then another method "make_left" is called to make the left pointers of the nodes point to valid …

Member Avatar for pankaj.leon
0
206
Member Avatar for Reethu_1

Duplicate occurance of the same value has to be removed. If the (linked)list traversed from head contains sequence 3,2,8,8,8,5,2,3 after calling last = Node(3) head = Node(2, last) head = Node(5, head) head = Node(8, head) head = Node(8, head) head = Node(8, head) head = Node(2, head) head = …

Member Avatar for TrustyTony
0
811
Member Avatar for nmakes

I'm trying to make a simple linked list example. I am using the dynamic method of memory allocation. #include <iostream.h> struct node { int INSTRUCTION; node * next; node() { next = NULL; INSTRUCTION = 0; } void setnext(node *P) { next = P; } void DELETE() { delete this; …

Member Avatar for nmakes
0
138
Member Avatar for jai_steave
Member Avatar for Paul_15

I am developing an application which I have added 2 combobox's (possibly not the best way but it works fine in the most part) which I import data into from a CSV file. I have added code in so that users can add to this file, again this works fine. …

Member Avatar for Paul_15
0
145
Member Avatar for Qwert_1

Here is a linked list code in C , It does not give expected output . Input NUMBER OF ELEMENTS -3 but it takes only 2 element and prints them with an extra zero. here is the output **ENTER THE NUMBER OF ELEMENTS 3 1 2 The list contains 0 …

Member Avatar for deceptikon
0
274
Member Avatar for christinetom

Hi everyone.. :), me again. I've never used Linked Lists.. They don't make sense to me. I kind of understand them though. There's plently of online explanations explaining what they are but they all go down the same path. I'm trying to undertstand how one Note (via the next pointer) …

Member Avatar for christinetom
0
275
Member Avatar for asaidi

Hi i want to display if possible a field from another table table a has group_id linked to group table..in edit it shows me the group_id i want to display near it the libelle of groupe i m just starting in cakephp please fine the code <div class="acnopens form"> <?php …

Member Avatar for diafol
0
161
Member Avatar for Frank_5

//Author: Frank R. Mendez //Title: Object Oriented Queue //Description: This is program uses double linked list to store data in the queue its functions are enqueu,dequeue and display queue. //Hope it can help you in you future projects. Good vibes to all programmers! #include <iostream> using namespace std; struct Node …

Member Avatar for rubberman
0
2K
Member Avatar for sahithi.visvanathan

include a member function named rangeSearch. The function should search the list for a specified range values, defined by two numbers. All value found to be within the range shall be returned a pointer to a list of Nodes in search range. If no value is found, the function should …

Member Avatar for Unimportant
0
208

The End.