2,180 Topics
![]() | |
Hi, I'm designing a database for a company that retails computer products, phones, faxes and so on. As you can imagine, there are a number of different types of products, eg. hard drives, CPUs, routers, optical drives and so on. One of the requirements is that for each category there … | |
I need to discover the names C# is using for component instances, both during design and run. The Designer assigns names, and the programmer can alter them during design, but the effect is to add names in the code. Since Component classes do not have a 'Name' property as such, … | |
If a function prototype is given in a 2 dimensional linked list as [INLINECODE]void InsertNode(NODE<T>*pNode, NODE<T>*pAfter,NODE<T>**pTail)[/INLINECODE], and all the necessary codings for inserting a new node is done for its function implementation, i.e, [CODE]void InsertNode(NODE<T>*pNode, NODE<T>*pAfter, NODE<T>**pTail) { pNode->pNext = pAfter -> pNext; pNode->pPrev = pAfter; if(pAfter->pNext!=NULL) pAfter->pNext->pPrev = pNode; … | |
Hello everyone. I suppose I should start off with an introduction. I'm new to the whole C++ environment. I've done some scripting in perl, but just started with C++. I've picked up a few books and looked around on the web now for about 5 months. Finally came across this … | |
If I were to write the code for some functions in a 2 dimensional linked list called get_data that finds the data stored in specified row and column and upon successful data retrieval, it returns true or else return false. And the given prototype is: [INLINECODE]template <class T> bool get_data(int … | |
:icon_question: [COLOR="Green"][B][I][/I][/B][/COLOR]how can we display the elements of a linked list? | |
Using Visual Web Developer, I am wanting to use a Drop-Down list on a Web Form. I know how to use HTML to create and add items to a Drop-Down list. The problem is that I need to populate the list from a database. So I used a DropDownList control … | |
![]() | Hey guys, I'm trying to make a linked list in C++ such that: it creates a node for each student in a classroom, AND that each student has it's own 4 nodes for their 4 test grades. I've created two structs - studentNode, and gradeNode studentNode containing "name" and "*next" … |
Hi Does anybody knows good website with a tutorial for C++. What I really looking for is a tutorial regarding the linked list, stack and queues with a good explanaitions. It would be lovely if anybody knows the site with an practice exercises on them (I mean programs) with an … | |
[code]struct student { char name[20]; int math; int science; int history; int english; int total; } [/code] how to create linked list that sort the details based on total in acsending order and how to prompt tot user to enter the student amount and marks between 0and100 just tell me … | |
We have a Windows Server 2003 machine set up with Exchange 6.5. We have around 10 users set up to be able to logon to the server, and up until now, all have had "user@domain.com" e-mail addresses associated with their account that were linked to Exchange mailboxes. In the "E-mail … | |
Let me start by saying this is my first post here at daniweb and I am pretty new at C++. With that said I will dive right in. I have a program due next week and trying to get it hammered out. I have to create a line editor that … | |
writa a code in c++ create a link list that will store information note{item code,item name,item price,intem quantity} add record print all search exit and delete ![]() | |
Hi, i'm trying to implement a node class to be used with a linked list. When try to complile i get the following errors in the .cpp file: Node.cpp:26: error: syntax error before `::' token Node.cpp:31: error: syntax error before `*' token Node.cpp:36: error: syntax error before `*' token Everything … | |
Hi I try to fill linked list with names. I have one error could anyone fix it. [CODE] #include<iostream> #include<conio.h> #define MaxSize 30 using namespace std; struct Node { char name[MaxSize]; Node* link; }; class Q { public: void get_input(char array[]); void print_input(); private: Node* head; void display(Node* ); }; … | |
Welcome to my first ever tutorial. This tutorial will be about RAM or random access memory, if you want the long hand version, along with Graphics Cards. Now RAM is one of the most crucial parts of the computer, being the short term memory for the computer. The RAM holds … | |
[COLOR="Red"]- Creat a Daubly Linked List with 9 node with the following values: 3 ; 2 ; 1 ; 4 ; 6 ; 7 ; 2 ; 8 ; 3; - print the Daubly Linked List: - Creat a function number " Special Delete" that searches for a value in … | |
I'm writing a doubly linked list and a lot of the code ends up being the same with _next and _prev switched. What can I do to keep from writing some code with _next and then the same code again with _prev? Can I do like a template that flips … | |
The copyList function here is not working working. Anyone have any ideas? // header file [CODE] #ifndef H_orderedLinkedList #define H_orderedLinkedList #include <list> #include <iostream> using namespace std; struct coordinates { int xValue; //variable to hold x coordinate int yValue; //variable to hold y coordinate }; struct node { coordinates info; … | |
Please help me what is linked list in C++?i need to know this because we have a report about this topic....i really dont have any idea on this.. please kindly give me a detail about linked list and if you have any recommended site that explaining what is linked list … | |
ok here is an example of the type txt file I am trying to read 12345678901234567890123456789012345678901234567890 Bugs Bunny Jr. 1234 1001.01 Dr. Wiley Coyote 2345 1002.02 Taco Speedy Gonzales3456 1003.03 Billy the Goat 4567 1004.04 Porky Pig 5678 1005.05 what I am trying to do is skip the first line … | |
please help me in writing the code for "polynomial ADT ADDITION using [B]LINKED LIST[/B]:S | |
Can someone please help me out here. My server (Apache specially) has been acting wiered whole day. [CODE][Sun Jul 1 11:01:33 2007] [notice] Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510 mod_ssl/2.8.28 OpenSSL/0.9.7a configured -- resuming normal operations [Sun Jul 1 11:01:33 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Sun Jul 1 11:01:33 2007] … | |
I've written a program that keeps a linked list of Personnel. The Personnel can be of the type Student(inherited from Personnel) each student has the name and id from Personnel and a Queue of type books. Everything works except it doesn't display the list of books. please offer any help … | |
I recently pushed out an outlook 2003 update from my WSUS server to about 100 clients. Out of those clients only 1 has show an issue. All of their Junk mail is being sent to their inbox and all the mail from their inbox is goign to their Junk Mail … | |
these are the errors that i'm getting i dont' know whats wrong because most of it is given by the instructor any help with these errors will be greatly appreciated c:\documents and settings\compaq_owner\my documents\visual studio 2005\projects\book.cpp(12) : error C2236: unexpected 'class' 'Queue'. Did you forget a ';'? c:\documents and settings\compaq_owner\my … | |
i wrote this program to input 12 intigers (mustuse linked lists), sort it while its being inserted, then take the average, then take out the numbers that are greater then the average and make a new lists, then take a second list of 12 intigers, then lastly merge those 2 … | |
I wrote a hash table that takes a char as a key and for a test I am using a string for my value. It uses a linked list. But I am having a problem displaying the value. I have a function that displays the key correctly but the value … | |
I came across a simple way of quicksorting linked list which is same as iterative version of quicksort for arrays... [url]http://www.openasthra.com/c-tidbits/sorting-a-linked-list-with-quicksort-simple-algorithm/[/url] worth a look... Let me know if you have any other simple algorithm for QuickSort (for sorting linked lists), should be easy to understand... Thanks. | |
Hi i have to use linked lists to get information from the user and dispaly it. I am having trouble with displaying the linked list. If you look at my second function where i am trying to list the information, you might be able to tell what the problem is? … | |
The assignment is to write a circular linked list. I know that it is pretty much the same thing as a singly linked list but with the head pointing to itself instead of null. however i am not sure if i did this right or not... or if my add … | |
I want to write a function int Listofleaves (Tree tree,List* list) which recieve a binary tree -"tree"(the input) and a list pointer "list"(output)...the function supposed to return the trees leaves nodes(nodes with no children) from right to left as a linked list(!) in "list"...and also return at the end the … | |
hello everyone,, first i wanna tell that i am a new membor and i heard alot about this usefull forum.. and today i want ur help guys... in this question i dont know the causes of the error : the topic is doubly link list which is soted.. the type … | |
variations of this are being posted repeatedly here. hope this will clarify things once and for all. [code=c] // to choose a random element from a sequence when // a. you do not know how many elements are there before hand // b. you want to make one single pass … | |
hi folks - i'm quite new to c++ and have written a program where i have used a linked list to simulate 3 printers working in a queue according to their priority. After much blood, sweat and tears I got that bit working. Now I'm onto the second "easy" bit...I … ![]() | |
Hi, Can Anyone help me in pseudo code or algorithms to write InsertAt() method for LinkedList. Basically when this method will be called it will ask user where he want to put that data somewhere in the middle of nodes and then that data will be inserted in between the … | |
Hi All, I am working on linked list application which the structure is as: [code] public static void Main(String[] args) { Console.WriteLine("Please Enter the data to be Inserted in the LinkList..."); Object obj = new Object(); node n = new node(); linklistImp llist = new linklistImp(); ArrayList ast = new … | |
hi, how to find out a point in a linked list there is a circular linked list i need to point out when the circular linked list has started in a linked list | |
When I run this code (Visual Studio 2005), I get the following compiler errors and can't fix this no matter what I do: c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(10) : error C2143: syntax error : missing ';' before '<' c:\documents and settings\dthomas006\my documents\visual studio 2005\projects\pa3-q1\pa3-q1\stacktype.h(24) : see reference to class … | |
[COLOR=#555555]Hey, [/COLOR] [COLOR=#555555]I have a singly linked list that has a show all function that looks like this[/COLOR] [code] [COLOR=#555555]virtual void Show()[/COLOR] [COLOR=#555555] {[/COLOR] [COLOR=#555555] myObject->Show(); myNext->Show();[/COLOR] [COLOR=#555555] } [/COLOR] [/code] [COLOR=#555555]Where myObject is a class ordered by an int. This function prints out all information in the list.[/COLOR] [COLOR=#555555]I … | |
I am attempting to search a list to check whether an item is already present before inserting. I am having trouble with the pointers; I understand that I need to set the pointer to the start of list but I keep getting compilation errors. Can anyone help? Here is my … | |
i need to write a program that, There is a file of Beach Boys albums on the internet. Each entry has the following form: Name of album Artists from 1 to 20 names of songs (in cut number order) An album separator line is made up of equal signs Your … | |
i've written a code for insertion in a linked list for all the 3 cases that is ...at the end,in the beginning & in between.....when i run this code then it runs successfully for insertion at end and in the beginning ,it is also showing no errors while compiling the … | |
Hello i have an important homework assignment which is due up on mon 26th and i need a competent java programmer with netbeans expirence. Problem is as follows: It's a small project and i have basically designed all the forms and buttons needed etc. Now i need someone to link … | |
hey guys, uhh ok remember the old addressbook problem? well i solved it :cheesy: ! but now my prof gave us the same assignment but we have to do it as linked lists.. and i dont know how to use linked lists quite well yet.. this is my original code … | |
Here is the list of instructions on this assignment I am currently working on: [B]Implement a Base 7 or Base 21 InsertionSort algorithm[/B] [LIST] [*] Input: File containing a list of Base 21 numbers[LIST] [*]Name of this file is supplied on the command line [*]First element in file is number … | |
Hi i am a beginner in programming C++ language and am having a bug in the doubly linked list program. The problem is while printing the list in fwd direction the prgm prints the contents just fine. however while trying to print the list in reverse direction nothing gets printed. … | |
I have a program that creates a linked list and is required to count the number of elements in the list. This is what I have thus far. [code=c] #include <iostream> using namespace std; struct listrec { int value; struct listrec *next; }; listrec e1,e2,e3; int listsize(listrec); struct listrec* temp; … | |
Hi! I have a problem with Dijkstar algorithm. At my university I was told that to use this algorithm I have to have: [LIST] [*]array of distances from starting node to all unreached nodes going only via node in set reached. [*]set of reached nodes (I pressume that it would … | |
Write a complete program to implement the link list operations as following. a. Write a routine to make two lists L1 and L2 with 5 elements given by the user at run time. Or add two lists with its elements in the main function. b. Write a routine to compute … |
The End.