1,306 Topics

Member Avatar for
Member Avatar for FP101

I have an external app that writes out a very basic xml files that contains data that needs to be processed. For Example, one type of job would be a simple file copy. So in the XML file there would be (among other bits of information about the job) things …

Member Avatar for lasso17
0
135
Member Avatar for USUAggie

Hello all, I was wondering if you all could help me out with a Binomial Queue problem I am having. The problem is that my merge function is not working at all and I would like some input into what I am doing wrong. Here is my merge function: [code=c++] …

Member Avatar for tesuji
0
173
Member Avatar for ranseed

Hi, I have this assignment from my information structures class that is kicking my butt!!!!! I would really like some help with it. I have to use a graphical user interface which I already built to display a binary file. The binary file is shown based on a BST, a …

Member Avatar for Lerner
0
81
Member Avatar for disophisis

I have an Epson receipt printer which Windows detects as an Epson TM-P2.01. It has worked fairly well, but it is suddenly not working anymore. Every time a print job is sent to the device, it either spools it, or if spooling is disabled it tries to print it. But …

Member Avatar for disophisis
0
1K
Member Avatar for normanallen

I have a desktop running XP SP3 which has my printer connected via a parallel cable. My son has a notebook running Vista. We have his internet connection working via my wireless router (Belkin). He asked for printer sharing to be set up. Both machines are now in the same …

Member Avatar for OlyComputers
0
119
Member Avatar for amarforum12

Hi All, I am using the message queue (msgsnd() call) in my c program binary to send the message to the parent along with priority. The call hangs in between after I send the message to the parent. I have an error check if the msgsnd call fails. But the …

0
44
Member Avatar for darmstrong

I'm hoping that someone will give me a moment so I can understand how formmail works so that I can more effectively troubleshoot my problems. Background: I'm downloaded a very basic formmail to use on our intranet site for employees to respond to. I'm testing this on a XP Pro …

Member Avatar for darmstrong
0
484
Member Avatar for joshmo

I am trying to do a simple queue using linked list. I am failing to perform dequeue because I cant get the logic straight. If there is anyone who could explain to me about the simple logic of this then it would help alot. Thanks. I have also posted the …

Member Avatar for Lerner
0
156
Member Avatar for Yuichi

Hi guys,i am new to both c++ and this forum...I got a problem with a question i m supposed to do.I am supposed to create a queue system but i am stuck at a point where i can't add numbers to the queue system.This is the question... You have been …

Member Avatar for Yuichi
0
208
Member Avatar for niitian

hello everyone. i need a bit of help in this project of mine which is due in 2 weeks.. here's what needs to be done, but i have no idea about the logic:( if somebody can help me with the pseudocode or algorithm, i could write the code maself.. [B]Write …

Member Avatar for Nick Evan
0
159
Member Avatar for rpamballa

Can someone go through the following code whic generates shortest path for randomly generated processes. My code is generating a segmentation error when I run it, and I am unable to locate the bug. //This program implements the O(n) algorithm for finding shortest path for randomly generated processing times [code=cplusplus] …

Member Avatar for Cybulski
0
174
Member Avatar for joshmo

I am studying stacks, queues, and heaps at the moment but i dont know how i can apply this in real life. Well my question is how can these may i say operations helpful and when are they really needed as opposed to others. I hope you can get my …

Member Avatar for Alex Edwards
0
140
Member Avatar for Nemoticchigga

I have a server running using winsock2.h TCP/IP. I open two ports on my pc, and then in a different application connect and send and receive to and from the server respectivly. In my client application receiving port, everything is working perfectly. In my server that is receiving though, it …

0
58
Member Avatar for saidin0111

I'm having issues with my 3d programs mostly, especially games. a few days ago, they suddenly started getting about 1-2 fps, while reporting that they get 12-15 fps, which is considerably lower than what they had been getting. I haven't installed anything for some time and assume that something is …

Member Avatar for saidin0111
0
419
Member Avatar for saidin0111

Okay, these processes have always ran at normal priority, but now they have jumped up for some reason. I can't change the priority manually w/ task manager b/c windows says that they're critical system processes. I need to return them to normal priority b/c they seem to be robbing my …

Member Avatar for caperjack
0
491
Member Avatar for ardillo

I'm having a bit of a problem getting the digital traditional flash and contact info to show when i click on the animated slide menu.... i think its my style's and body and how im calling them from the java script, in the body tag... a little guidance would be …

Member Avatar for Ezzaral
0
76
Member Avatar for linux0id

Hello everyone! I am learning sound programming on Linux. In my app I am using ffmpeg to decode the audio, and then ALSA to pass it on to speakers. So far everything is fine - the packets are retrieved, stored in a queue. After that, the packets are read from …

Member Avatar for linux0id
0
123
Member Avatar for SVR

Hi, I wonder if anyone has seen a solution for a similar problem or can think of a better solution than this. I initially tried to use Floyd-Warshall with a MAX function instead of MIN but the result was not as expected. If one could make that work it would …

0
91
Member Avatar for amjadamjad20

HI First I apologiz ‎ about my bad language Be cuz my language is not English I have this problem in my project code And I try to solve it but I cannot This is in the part of main [CODE]int main () { Queue<primaryPatient> primaryQueue;//create object from class Queue …

Member Avatar for Duoas
0
106
Member Avatar for toolbox03

Just wondering how do you create a queue system using pthread? I need to create 2 thread, one for putting in the queue number into an array and the other for removing the queue number from the array.

0
59
Member Avatar for sagz

Hi all, I have a program that reads a text file and counts the frequency of phrases, for phrases up to ten words long. I solved a problem with printing out phrases that occur more than once, however I have discovered that my program reads punctuation marks and includes them …

Member Avatar for sagz
0
174
Member Avatar for qurat

[B][COLOR=navy]hi my name is qurat .. i have a small problem :rolleyes: i dunno how to do this program .. i have tried it several timez but it is giving some or the other error[/COLOR][/B] [B][COLOR=#000080]here it is:[/COLOR][/B] [B][COLOR=#000080][/COLOR][/B] [COLOR=#000000]Implement a Queue using two Stacks (implement Stack using link list).[/COLOR] …

Member Avatar for Prabakar
0
85
Member Avatar for sagz

Hi all, I am a newbie to programming and have almost complete my assignment 'Frequency of words and phrases' to a satisfactory standard. My program reads a text file and counts the number of phrases within the file (A phrase is defined as a sequence of one or more words), …

Member Avatar for sagz
0
157
Member Avatar for ladyj4480

I am currently doing a project which consists of a Priority Queue. I have to simulate two boarding procedures of an airline. Rows 1 through 4 are first class seats (4 seats in each row) Rows 5 through 26 are coach class seats (6 seats in each row) Rows 10 …

Member Avatar for ladyj4480
0
177
Member Avatar for guitarrick

I REALLY HOPE SOMEONE CAN HELP ME ON THIS!!!! I have only today left to complete this project; and I'm lacking in some key areas to say the least. Here's the assignment: "Implement an event driven simulation of a bank. (Just customers in line - and 1 teller). A queue …

0
67
Member Avatar for Lass

hey every body, in my project-Emergency room Simulator- i should open file for all patient if he didnt have one, so, when the patient come, i will ask him if he has a file, if yes, i will read his information and add some more in it, if not i …

Member Avatar for mitrmkar
0
170
Member Avatar for rickya100

Hi, I am hoping someone can explain to me a better way of coding than I currently do right now. It concerns accessing the results of a SQL query stored in an array. OK so right now I do somthing similar to this: [code=php] $rows = @mysql_query("select count(*) from debate_queue") …

Member Avatar for rickya100
0
114
Member Avatar for anifreak

hello there! i'm new n i need real help! i got this homework and i have to have it done before tomorrow! i tried so hard n i cried all the last night *cries again* i hate queues!!!!! anyway plz help me if u can. i have to write 3 …

Member Avatar for William Hemsworth
0
132
Member Avatar for mghx

Write a program and fill a queue with random numbers between 0 and 100. The size of the queue is assumed to be 15. After filling the array with random numbers, display the elements in the queue and remove the elements of the queue and store these numbers according to …

Member Avatar for Narue
0
245
Member Avatar for gehad3003

Hi I have a homework assignment that ask you to complete an empty project that contains a queue and stack. the data should be stored in a circular array. Functions of the queue are: pushBack : to insert in the back pushFront : to insert in the front popBack : …

Member Avatar for gehad3003
0
184
Member Avatar for whoknows101

I kepp getting errors in my following code [code=c++] #include <iostream> #include <queue> #include <ctime> using namespace std; template <class TYPE> void randomInit (TYPE array[], int size, int mod) { for (int i = 0; i < size; i++) { array[i] = rand()%mod; } } // Prints Array template <class …

Member Avatar for whoknows101
0
304
Member Avatar for superjacent

I'm self studying C++ and I'm actually back-tracking a bit in order to clarify things. My question revolves around why in the following code is the [icode]cin.fail() == true[/icode]. [code="cpp"] #include <iostream> using namespace std; int main() { char getdata; cout << "Enter one character: "; cin >> getdata; cin.get(); …

Member Avatar for superjacent
0
309
Member Avatar for obsolucity

I'm not really sure how to go about implementing these functions in my queue, any help is greatly appreciated! Edit: I just realized, I also have no idea where to start for the copy constructor [code=cplusplus] #include <iostream> using namespace std; template<class ItemType> class Queue { private: int front; int …

0
66
Member Avatar for beatlea

Hello, I created an ArrayList with lists and arrays (randomly chosen) of queues and now need to get access to these lists and arrays to add, remove and display elements in them. How could I do this? I tried ArrayList methods like get(int index) and iterator(), but it just shows …

Member Avatar for beatlea
0
173
Member Avatar for bleonard989

I am having problems with my linked queue adt. I don't get any error messages, but it just isn't doing anything in the menu driven client code. It's just to test the queue to make sure it works correctly. The most problem I'm having is with my print function. If …

0
78
Member Avatar for kse989

I need help writing code for my print function in a linked queue adt [B]queue.h[/B] [CODE= CPP] template <class ItemType> // record type for nodes on queue struct NodeType { ItemType info; NodeType* next; }; template <class ItemType> class QueueType { public: QueueType(); QueueType(const QueueType &); // Copy constructor ~QueueType(); …

Member Avatar for Ancient Dragon
0
186
Member Avatar for kse989

The assignment is to, using the given header file, write an implementation file, a menu-driven test file, and a car wash simulator... [B][U]Please see attachment for complete instructions[/U][/B] This is what I have so far, I am having trouble with my print function... I am new to Queues and not …

0
75
Member Avatar for h0neydip

[code] #include <iostream> using namespace std; const int queue_size = 1000; class queue { private: // array containing queue elements char data [queue_size]; char *front, // index of the front of the queue // indexes 1 before actual front element *rear; // index of the rear element in the queue …

Member Avatar for dougy83
0
120
Member Avatar for jlaw1027

We're making a queue that simulates a line at the DMV and aftersomeone goes through the line, or queue, we cant to take that persons name and add it to a new queue to display in the final stats of how many people have gone through and the total amount …

Member Avatar for Ezzaral
0
95
Member Avatar for blcase

Hey, i dont need any specific help but i was wondering if anyone could help me generate an idea for my project. basically i have to use queues, deques, and stacks in a programmable way. The exammple that was given in class (which we can't use) is a librarian takes …

Member Avatar for Jacky1
0
102
Member Avatar for piyush_soni

I have a structure in which there are three float variables, and in a bigger program, I'm using an array of these structure objects. Now, I thought that each time in a loop when I was using values of these structures, I was creating a new copy of those objects …

Member Avatar for piyush_soni
0
199
Member Avatar for Noliving

This is the first time I have ever had to do a simulation type program. This is what I'm trying to do: Your application should use an array of tellers (10 tellers would be a good maximum) but on any particular run of the simulation, any number of tellers from …

Member Avatar for VernonDozier
0
2K
Member Avatar for Tom21

I have write a code to read data from a file and i try to put it in a queue but i don not know who to put in th queuue.IS anybody who can give an example??? my code is bellow: [code=c] if((fp=fopen("read.txt","r"))==NULL){ printf("\nERROR OPENNING THE FILE"); exit(1); } while(fgets(line,100,fp)) …

Member Avatar for jonnelgrande
0
75
Member Avatar for rick_kelly

hi im new to the forums, im am currently making a rota and am having problems. i can add new objects to the queue and remove an object from the queue, but i cant seem to get the "names" to go from the front of the queue to the back …

Member Avatar for rps_x
0
96
Member Avatar for nelsonsu

when i running this program, i've found that one of the used integer always over load. that is int outq. could someone please help me find out what's make this integer over load at last? thanks. [code=cpp] #include <stdio.h> #include <stdlib.h> #include <time.h> #include <fstream> #include <iostream> #include <string.h> #include …

Member Avatar for nelsonsu
0
156
Member Avatar for nelsonsu

as the problem i'd met b4: [url]http://www.daniweb.com/forums/thread115104.html[/url] there's another problem looks like same with that problem, is about the logic of the int outq. this make the result1.txt always get unknown words after few loops. i'd like to know how to correct it. [code=cpp] #include <stdio.h> #include <stdlib.h> #include <time.h> …

Member Avatar for nelsonsu
0
90
Member Avatar for nelsonsu

as the project given input1.txt and command1.txt to create result1.txt input1.txt: 1 C0A80001 8F22 C0A80002 0050 32D5B9C 2 C0A80001 8B05 C0A80002 0050 12D67B 3 C0A80001 CC08 C0A80002 0050 32D5B9C 4 5 6 C0A80001 C4A3 C0A80002 0050 34F1 command1.txt 1 output 2 output the queue length 3 idle 4 output 5 …

Member Avatar for nelsonsu
0
261
Member Avatar for Noliving

My question has to deal with the end part of my pseudo code. Basically the method I'm doing is taking the front name in the queue and moving it to the rear and making the next in line to be the new front in the queue, he recomended using E …

Member Avatar for darkagn
0
87
Member Avatar for prs55

Could you guys please help me to solve this pathOk function, the code is: [code=cplusplus] // graph.h #include <iostream> #include <vector> #include <queue> template <typename ItemType> class Graph { public: Graph(){ }; ~Graph() { Clear(); } void AddVertex(const ItemType& theItem); void AddEdge(int n, int m); bool Empty() const; bool EdgeExists(int …

Member Avatar for prs55
0
150
Member Avatar for Shana8426

Hi I have to create an iterative insert for an avl tree and I have to use enumeration for my balance factors. My enumeration is enum balanceFactor {TILTS_LEFT, BALANCE, TILTS_RIGHT} Please help me. I have been struggling with this for almost 2 weeks. When I enter input such as 20 …

0
57

The End.