2,180 Topics
![]() | |
I was given an assignment to complete on database, i have created it and also works but crashes after executing once, check it friends and please help, if you can modify or make it works my time is really limited and am unable to find a solution, friends be graceful … | |
I have to ask the user a question on what number they would like to search for in the list. The code compiles fine but when I run it, nothing shows up for the user to ask a question. here is the code: [code]#include<stdio.h> #include<stdlib.h> struct Node { int data; … | |
Dear all this program create a linked list of numbers while you dont enter 0. then bubble sort function is called and finally display function shows sorted list. I wrote it by Borland 5.02 . Have a good time! | |
Using an appropriate definition of listnode, design a simple linked list class with only two member function and a defult constructor: void add(double x) boolean isMumber(double x) LinkedList(); The add function adds a new node containing x to the front (head) of the list, while the isMember function tests to … | |
I just cant get my head around it. Is there another way going through a singly linked list without using some kind of helper function? The header file wants me to implement: [CODE]size_t priority_queue::size() { /* code here */ }[/CODE] Now I just could create a helper function that has … | |
Hello guys im working on a project for my class and im stuck. i dont have much of experience with linked list and my book isn't helpful with this project. Here is what the project is about: Develop an interactive program to implement basic linked list operations including: 1. Add … | |
Hi All, For each element in data1, I need to figure out what elements in data2 are related to it. Also, for each element in data2, I need to figure out what elements in data1 are related to it. Therefore, I setup a mutual data structure as you can see … | |
So this is probably going to seem like an obviously simple question. I'm working on a basic project involving linked lists. I have a single link linked-list, within this linked list I have a pointer to an dynamically allocated Object I'd like to be printed, currently I keep getting rubbish … | |
[CODE] #include <iostream> #include <cstring> using namespace std; class CD { public : void getCDdetails(CD *); void printCDD(CD *) const; int putCount() const { return count; } private : static int count; char Title[60]; char Artist[60]; char Type; int Tracks; }; int CD :: count=0; void CD :: getCDdetails(CD * … | |
I want to implemet linked list in c++ ,while adding new node I dynamicly allocate it, if some allocation fails I would like my program to stop the execution. After the "new Node" fails the exception is thrown so do I have to call the destructor explicitly in the exception … | |
Hello Firstly - sorry to Mitja and kimbokasteniv who replied to this question a few days ago. I know your answers are correct, and I thought I understood but I don't. Or at least I don't know how to apply what you have said. My fault. Both my brain and … | |
I have an assignment where I need to Sort the linked list according to Int Variable after the user has input the information. When I try using bubble sort I'm stuck because I don't know how go back to the beginning. If a user enters : 5 4 3 2 … | |
Hello:( I have an assignment to build the booking and payment part of a Thearte Booking System. I have four classes linked to an MDF database - well they should be - the two that we have been given will will be and the two that I have done might … | |
Hello, I am a beginner to java and needed some assistance...I am writing code to create my own singly linked list, and an iterator that iterates over the elements of the list...however I don't know how to use the iterator to display the elements of the list and I am … ![]() | |
hi i make code for double linkedlist.. but i didn't have a syntax erroe .. i don't know where the error . [ICODE]#include <iostream.h> struct dnode { int info; dnode *next; dnode *prev; }; class dlist { private : dnode *head; dnode *tail; dnode *current; public : void addEnd(int y){ … | |
Hi guys! I can not deal with the problem "Singly linked list to store integers". Can you give an example or to recommend books, where can I read about it. Thanks for your consideration. | |
Hello. I'm currently making a program that deals with a priorityQueue and inheritence/polymorphism. Student -> undergrad -> coop_student or student -> grad Now, the queue takes in the data and just puts it in a linked list and gives it a priority. That way, there are 3 queues and we … | |
Hi. I've been working with linked lists for a bit, but I've been having some trouble with them. My programming book does a good job in helping you make a linked list, but it does a bad job of showing you how to use them. What I am trying to … | |
Im having an issue with making a few test to overload the == operator in my linked list stack. i have the standard header files containing pop push and so forth. But Im having a problem writing these test. i was thinking maybe a test that would copy the stacks … | |
radixsort.c [CODE]/**************************************************************************************/ /* Radix Sort of integers numbers using polymorphic linked lists. */ /**************************************************************************************/ #include <stdio.h> #include "list.h" #include <stdlib.h> #include "numberinterface.h" #include <math.h> void static refill( int A[] , list Bins[] ) ; int static getdigit( int number, int position ) ; int main( int argc, char *argv[] ) … | |
this is a linked list based queue private class Node { String value; Node next; Node(String val, Node n) { value = val; next = n; } } public String dequeue() { if (empty()) throw new EmptyQueueException(); else { String value = front.value; front = front.next; if (front == null) … | |
I want to write a simple linked list program with ASM . Here's the code which I have tried to write(presently only for single digit numbers) ! However,it works only for 3 numbers and that too has sometimes some errors. I am new to assembly language. So please help me … | |
Hello all. Forgive me if I have posted in the wrong section! Here is my setup: WAMP server - Dreamweaver CS5 I am designing an Intranet solution for a client which I had previously described in my Introductory post several weeks ago. Here is one of the situations that I … | |
I was asked to create a circular linked list of names . My doubt is whether I can use two pointers , one to point to the first node in the list(start and other to the last node) or not! Is the use of two pointers against the whole idea … | |
I just started looking at iterators in my C++ class and don't think I fully understand enough about them to actually create one. I need to add an iterator to this doubly linked list program: [CODE]#ifndef CSLIST_H #define CSLIST_H #include <iostream> #include <cstdlib> using namespace std; template <class T> struct … | |
Hi, I am looking for this page to display both the text and matching image. The text is coming from match table and the image from gallery, both linked via image title. Not sure if i am joining it correctly as i am getting 'parse error' on the 2nd last … | |
Hi Guys, First post on here :) I've been here before and i've usually been able to find what I needed but now I'm in a bit of a bind. I'm doing a piece of coursework for my university course and i've just hit a huge brick wall. Basically what … | |
globals.h [CODE] #ifndef _globals #define _globals #define NEXT(L) ( (L) -> next ) #define DATA(T) ( (T) -> datapointer ) #define LEFT(T) ( (T) -> left ) #define RIGHT(T) ( (T) -> right ) typedef enum { OK, ERROR } status ; typedef enum { FALSE=0 , TRUE=1 } bool … | |
Hey, i know you are all probably very bored with the infix to postfix program and its many incarnations but i seem to be having a problem getting the linked list we have to use as a stack to work. More specifically; pushing to the stack, reading from the top … | |
Hi, I was given the following problem, I've almost got it but I've hit a roadblock and having no luck getting past it. Here is the problem im supposed to solve... The function insert of the class orderedLinkedList does not check if the item to be inserted is already in … | |
how can I declare linkedlist (the ready implemented linkedlist in c++) | |
Hello all, here is the code I came up with for implementing a circular linked list. I get a segmentation fault when I create the list with just one node. With size > 1 circular list works fine! Im not sure but I think it may have something to do … | |
Hi all, I wrote a program that has many functionalities but I can not swap 2 elements of 2 nodes in the linked list.Actually I can swap 2 nodes by changing their links but I can not swap 2 elements when the user requested 2 elements swapping.Here is my code … | |
Hi everybody o/. I'm studing Linked List in C. I made two functions: add ( add data on the list) and destroy (destroy the list). For now, it's just this two functions that i need, but the function destroy doesn't works well. When I call the function destroy only the … | |
hey guys! as the title hints at i'm having a problem with updating a table so just to give you an idea of the issue i'll give you a quick idea of what the JTable is expected to do(this is all coded but i'll save you some time and summerize) … | |
[CODE]i need a function that checks in two linked lists are equal thi is what i have so far bool equal(list L1 , list L2 , int (*p_cmp_f)() ){ if( L1==NULL && L2==NULL) return TRUE; else if( L1==NULL || L2==NULL) return FALSE; else if( (*p_cmp_f)(L1->data,L2->data) == -1) return FALSE; else … | |
![]() | Hi folks , i am working on hastable nowdays and looking ways to optimize my code . Please comment on my below observations and let me know if you have any suggestions. I have an existing implementation of chained hash table (A), which uses singly link list for chaining. typedef … |
I dont have any idea what the problem is. But what I know is it stopped at fgets(temp, 256, stdin); when I run the program, it runs this line and then just stopped because of a segmentation fault. The silly printfs are just for me checking where it stopped exactly. … | |
Yes, I have looked in the forums for answers and have found plenty, and am asking about what I could not find. And yes, this is homework, but I need help and my professor has not responded thus far... now on to business. Description of Goal: Make a Set Data … | |
Hi, I have to make a linked-node based priority queue for an assignment. For some reason, however, the enqueue and dequeue just won't work. I have honestly no idea why, because I think the algorithm should work. Can anyone point out the problem? It would be greatly appreciated. [CODE] public … | |
Hello! I am writing a code of linked list in which user can insert or delete names but the list must remain sorted alphabetically. I have written the given piece of code by now but it is not correct. Please help me out. I took help from this link: [url]http://stackoverflow.com/questions/2941368/sorting-names-in-a-linked-list[/url][code]//function … | |
Hi, I wrote a program that inserts nodes into a linked list in descending order.But whenever I test my code with numbers 12,14,13,19,7 in this order.Whenever I entered 7 I took 7 is already in the list.But as easily seen 7 is not in the list before I inserted.After give … | |
Hii every One i create Doubly Linked List with all methods i need , but is still one question which i really did not understand it very well it said : write a method to create linked list from double linked list using the methods available in myLinkedList(which have the … | |
Hi there I am developing a grid system that would generate non-overlapping grid cells. Upon creating a grid I want to be able to check to see if the potential grid overlaps any other grid cells. If it does then clamp the new grid cell to the already existent grid. … | |
we just started studying about linked lists and i wrote a simple code to build up a link list. than post the sum of all the numbers inside the list my problem is that i need to delete all even numbers and i cant figure out what is wrong with … | |
[B]The Producer Thread[/B] What does a producer thread write to the buffer? Create 20 different files (named in0.txt, in1.txt, ... in19.txt). [Testing Hint: you want to be able to tell from the text which file it is from, so the contents should be aaaaaa or bbbbbbb etc..] Vary the length … | |
Hello, I am trying to write a templated linked list, and I am having some difficulties with the add() function. It seems like different behavior occurs depending on how I add to my list, but my two test cases don't seem that different to me. I'll post the list.h, and … | |
I have a program that works access 2003 and i convert tables to sql Server 2005, but the problem is that program works only on the server but does not work on client .the internal network is workgroup and system is Windows XP . what can i do to get … | |
hello every one i make a project about linked list and do some functions on the linked list i want to sort the name in the linked list alphabetical i wrote this code but there is something wrong in it anyone can help thanks :) [CODE]# include <iostream> using namespace … | |
I have to add 2 polynomial equations. Each are stored in linked lists. eq_1 and eq_2 linklists are added and the total is stored in eq_1 linklist. But the problem is when im trying to add both equations, the 2nd for loop(eq_2) is looping once only. I mean when eq_1 … |
The End.