1,306 Topics
![]() | |
When i print data stored in a queue it also dequeue these data... can someone provide me hints on how to print data without dequeue...printing should only display data stored in that queue........ | |
Hi to all game programmers :icon_cool: I want to implement the following: Short description: [B]A* Star for partitioned space combined with an adaptive partitioning in 3D.[/B] Detailed description: A. Assume that in the 3D space I have an Object (myMovingObject) that I want to it to move from one initial … | |
I have an application that sets up a service: [CODE] HttpChannel ^chan = gcnew HttpChannel(webServicePort); ChannelServices::RegisterChannel(chan,false); String ^webServiceNameString = gcnew String(webServiceName); RemotingConfiguration::RegisterWellKnownServiceType (Type::GetType("OMOPI.ExecuteMacro"), webServiceNameString, WellKnownObjectMode::SingleCall); [/CODE] This service is used in a single threaded application. Therefore in the implementation of OMOPI.ExecuteMacro there will be a instantation of an Action that … | |
Hi Everyone, This is my first post and I hope I followed all the guidelines correctly. This is an assignment for a class. I am supposed to read integers from a file, enqueue or dequeue them and then write them out to another file. The main method calls this Work … | |
yea I know I spelled destructor wrong what can I say my fingers got in the way of my typing I have scoured the internet and tried several different ways to implement the destructor on my link list queue. I highlighted the troulesome code like this //***************************************** code //***************************************** here … | |
I have to confirm how the buffersize is working for the fileSystemWatcher. I have found this explanation on google: [I]The FileSystemWatcher class works by capturing all of the relevant file and older changes and placing them into a buffer. This is then processed one change at a time until all … | |
When I try to compile and run this file I get a segmentation fault when the size function is called so I must not have it set up right. The size function returns the number of stored chars in the queue. So I am thinking that the size function in … | |
I'm trying to create a central event system for my game where I add some events to a priority_queue and pull off the first one as soon as it expires. But I'm having a problem of understanding if I'm adding them to the queue correctly, if they're in order, or … | |
All this function is supposed to do is count each node in the queue and return the number of nodes. [code=c++] template<class SomeType> int TemplateQ<SomeType>::Size() const { int numberOfChars = 0; QueueNode<SomeType>* countPtr; if(IsEmpty) return 0; while(countPtr != rearPtr) { countPtr = frontPtr->data; numberOfChars ++; } } [/code] I am … | |
I am getting a syntax error when I try to compile. After I write a little code I try to compile to catch any of my mistakes. In this project I am to use a class queue template that is provided by my instructor here it is [code=cplusplus] #ifndef TEMPLATEQ_H … | |
Hi, I am having issues with assigning a value to a string. I have two structures node and edge as follows: [code] struct node{ string name; int key; }; struct edge { node u; node v; int weight; edge *link; }*front = NULL; [/code] Now I have a function that … | |
Hi, i am currently working on a java assignment which require me to create a binary search tree and then get the value of the deepest node which refer to the last level of the binary search tree with level by level traversal. I did the insertion and level by … | |
I keep getting this error and cant figure it out thanks for the input. runcs216p6.cxx: In function `int main()': runcs216p6.cxx:57: error: parse error before `catch' [code] int main() { ifstream inFile; ofstream outFile; inFile.open("in.data"); outFile.open("out.data"); if(inFile.fail() || outFile.fail()) { cout << "input or out file opening failed" << endl; exit(1); … | |
Hi all. I am trying to write a template class queue for an "assignment" and I got stuck by what I think is a syntax error. To be honest, the assignment was MUCH easier than that but after having it completed I thought to be interesting to explore new possibilities... … | |
I am trying to implement a queue based on a Linked List that I had to write previously. It is templated and for some reason I am getting the following error using g++ when I compile: [CODE]g++ LinkedQueueMain.cpp -o LinkedQueueMain /tmp/ccqwStpK.o: In function `main': LinkedQueueMain.cpp:(.text+0x2ee): undefined reference to `LinkedQueue<char>::operator=(LinkedQueue<char> const&)' … | |
Hi recently i am working on a binary search tree assignment which require me to get the deepest level of tree using level to level tree traversal. I did it by storing the dequee node into the stack so as to revert the order from the last level to the … | |
Hi All, I am trying to add Disclaimer to all outgoing mails My MTA is Postfix 2.4.5 OS Fedora Core 6 I had followed the instructions provided in this URL [url]http://www.howtoforge.com/add-automatic-disclaimers-to-outgoing-emails-with-altermime-postfix-fedora8[/url] Also googled and tried lots of other links too but what ever URL had i tried its showing a … | |
Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: [CODE=pascal]program linked_list_queue; type queue = ^myrecord; myrecord = record data: integer; otherdata: string; datadatadata: char; next: queue; end; const head = nil; tail = nil; procedure add(argument: … | |
This coincides with my Operating System's Project and am on an unforgiving time limit. Its such a big project and theres soo many parts to it and I can't really write down the details....theres too many things to this. But if any1 knows anything about operating systems and what a … | |
[code=cplusplus] #include<iostream.h> #include<conio.h> #include<process.h> const int max=5; class queue { int r; int f; int q[max]; int temp; public: queue(int l,int m,int p){r=l;f=m;temp=p;} void insertrear(int item); void deletefront(); void display(); }; void queue::insertrear(int item) { if(r<(max-1)) { r++; q[r]=item; } else { cout<<"\nQ is full"<<endl; } } void queue::deletefront() { … | |
I am getting a the warning "assignment from incompatible pointer type" when compiling my code, I have spent ages trying everything I can think of, but I am not very experienced at using C so it is probably something really simple that I just can't see. I have commented the … | |
I am working with fifo module...I actually found the basic code on DaniWeb, just made a few changes to it... There are 2 main sources...first one is called fifoqueue which consists of basic fifo functions i.e. qu, dequ, isEmpty and a couple more...the second one is called packetstructure which is … | |
Hey guys, the program has to wait until send button in jframe clicked then to get the text and put it in to queue and then send it to server using doInBackground method, also in line 65 i get a compile error which says that ther is nothin to override … | |
ok, I tried to do some reasearch first, but haven't really found what I was looking for. Each windows app uses a message queue that stores user input and calls the required event handler ( a simple way of putting it ... ). What I was thinking is that has … | |
I have a problem with the new program, it compiles and and it debugs, but when I get to the command lines and enter my function it gives me a debug assertion failure. We are supposed to be finding the sum of the area of rectangles used for close approximation. … | |
I want to insert and order 3 objects (from different classes) in a priority queue. I create an array to access to the element inside the priority and then I push in the priority queue. The code: [code] #include <iostream> #include <queue> #include <vector> using namespace std; class Alumnos{ public: … | |
I am trying to write some cd details to a file, from a queue. First i have taken all details from keyboard to a Queue and the made to write all those to a file in ascii format. Each queue has details like CD ID, film Name, film language, film … | |
I am trying to make a priority queue with a specific type class 'alumnos'. I create 3 new classes (new, medium, old) who inherit from it. Then I insert the classe into de queue. I would like to use polymorphism when extracting to use the correct function 'verificarEdad' but gives … | |
i have an assignment I've completed except for copying a queue into another queue. According to the book the code for copying is almost the same for a stack, but when I tell my program that copy = original, it's blank. Here is the code I have so far. BTW … | |
Ive recently spent a lot of time using BSD sockets in Linux to do socket programming. I have written this howto with samples to show a person how to send a message buffer. Feel free to comment on this and correct anything that you think i have said wrong or … | |
How do you delete the front cell of an array in an array based circular queue? Here's the Queue cpp functions [code] #include <iostream> #include <string> #include "Contributor.h" #include "myQueue.h" using namespace std; myQueue::myQueue() { front=0; rear =0; Index=0; size= 0; ArrayQ[10]; } myQueue::myQueue(const myQueue &CCmyQueue) { for(int i=0;i < … | |
Well I dont know where I am going wrong.... I and trying to do this queue with out the STL I am having issues with my enqueue () How do I get the contritor Info into the enqueue. I am trying to do it as simle as possible and I … | |
well I am back with the code agin. I am trying to print the whole queueu. I can cout the front and rear but I can get the PrintQ() to work. | |
Forget it. [url]http://news.zdnet.co.uk/software/0,1000000121,39452527,00.htm[/url] "three years from general availability of Windows Vista" Or 18 months after SP1. Or what, 2 weeks after SP3 and the deluge of daily fixes has slowed to a trickle. Oh well, never mind, time to buy some new hardware and ride this brand new pony from … | |
I am having trouble with the following program. I am trying to create a linked list that behaves like a FIFO queue. I need to be able to add new items to the end of the queue and remove them from the front. My confusion is with trying to use … | |
i have been given an assignment about palindromes but i don't no how to do the coding in c++ and using queue and stact to check if a string is a palindrome.. please help me guys.. i need all your knowledge about it!.. i need it as soon as possible.. … | |
I am trying to write the class that will take in objs from another class and put it into a circular array without using the STL. O I wrote the class and in Main I delcared an obj of the queue called (myQueue myQ) so this is the obj but … | |
guys.. please check this program this is already running but i have no idea to insert a queue i need all your help guys as soon as possible. I hope that you will grant my request.. thank you... God Bless and more power.. [code=c] #include<stdio.h> #include<conio.h> #include<string.h> #include<iostream.h> #include<DOS.H> #include<process.h> … | |
Question:-- Write a program that read a line of text, changes each uppercase letter to lowercase and places each letter both in a queue and onto a stack. The program should then verify whether the line of text is a palindrome Output: Please enter a line of text I am … | |
Right now Im having trouble getting data from a MySQL table and creating a new datatable to store this. I have a TreeView control that I am trying to dynamically add nodes to. The query that I have is returning the Attachments column of all rows where Owner = (parameter), … | |
Here is the code I have [ICODE] #include<iostream> using namespace std; void push_t(int j) //--------------------------------------------------- // Accepts a value and pushes it onto the stack top // Precondition: if keyset = 0 the deque does not yet exits // deque is a structure with int j for data // Postcondition: … | |
ok, so to start, this computer is rarely used by me until the last few days. it sits in my living room and is usually just used to play videos on a TV. however within the last few days, i have installed itunes, a program called music rescue to copy … | |
I'm having difficulty passing variables to threads. I've recently compiled 5.8.7 with threads enabled and I am using the new ithreads. When running code as follows: use Thread qw(async); async { while(1) { print 1; } }; while (1) { print 2; } The code works as expected and prints … | |
All: For some reason all my users are able to access this one web page for our On-Demand Host to start a TN3270 session in a Java environment, but I have one person who cannot do it. I've tried absolutely everything, from trying a different browser, to reinstalling XP SP2, … | |
Hi, I'm reading Programming Windows Fifth Edition by Charles Petzold. In the part I'm reading, it talks about GDI functions. I'm trying to get the pixels that are 1 to 100 + the mouse x coordinate and the y coorinate, then draw them on my window. It's hard to explain. … | |
I've been searching for information on using wx.PyEvent so I can create custom events that fire from within my code rather than needing the user to trigger them. There isn't much around. There is some information on using wx.PyCommandEvent but I believe that these events still require the user to … | |
this is my assignment question. You must implement a simulation program to model air traffic among a collection of airports, as discussed in class. There are two important extensions that will be made to the model. First, in addition to arriving aircraft using the runway, departing aircraft must also use … | |
I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton. [CODE]#pragma once #include <queue> public ref class DataSource { public: DataSource(void); void DSInitilize(void); char* getNextElement(void); System::Void setNextElement(char* value); private: queue<char> MessageQueue; };[/CODE] It is not finding … | |
If someone have any idea that how to check that a file is added to the printer queue. Here is my case details [B]Process p = new Process(); p.StartInfo.FileName = fileAddress; p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; p.StartInfo.CreateNoWindow = true; p.StartInfo.Arguments = "open"; p.StartInfo.Verb = "print"; p.Start();[/B] I am using this code to … | |
I need to write a program that will read in a polish string and calculate the value of the string, using 2 linked list, a polish queue and evaluation stack. Here is what I got so far: [code=cplusplus] #include < iostream> using std:: cin; using std:: cout; using std:: endl; … |
The End.