1,306 Topics

Member Avatar for
Member Avatar for Rastafari

Hi, I have this code fragment that is suppose to find the max value in a queue. It seemed to work fine until I switched up the locations of the letters being fed into the queue. It is suppose to compare each element of the queue and return the largest …

Member Avatar for Rastafari
-1
88
Member Avatar for dirnthelord

I was trying to implement a queue using linked list and the problem is when i try to call dequeue() method, nothing shows up and no errors too. just NULL values for all nodes. take a look @ this code and tell me if there is anything wrong... ps. Do …

Member Avatar for dirnthelord
0
214
Member Avatar for katwalatapan

Hello everyone, While implementing POSIX messaging queue, I am encountered with "Message too long error". I have stated 128 bits for my problem, but it still gives the same error. Please do help me in resolving this memory issue. Regards, Tapan. [code=c] #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <mqueue.h> …

Member Avatar for gerard4143
0
1K
Member Avatar for ankit894u

in want to edit the code in such a way tht the user can enter upto 10 values maximum..need help pls ... [CODE] #include <iostream> #include <iomanip> using namespace std; struct node { int info; struct node* next; }*front,*rear; void enqueue(int elt); int dequeue(); void display(); void main() { int …

Member Avatar for shaynerossum
0
102
Member Avatar for aomran

this progran will simulate a process queue, giving time slices based on the priority. The process entries will be in a file, one per line.the data is the start time, priority level, total time to run and process name. when I run the program I got few problem 1. how …

Member Avatar for aomran
0
129
Member Avatar for TGeorge824

Hi, for an assignment I have to do, we have to made a Stack and Queue, and read data from a file and add to queue and push onto the stack. Well, I made an array implementation of a stack that works fine, but the array implementation of the Queue …

Member Avatar for Dave Sinkula
0
925
Member Avatar for OneDreamCloser

hi all , i hope you can help me with the following : in types.h : [code=c] /* Structure of input buffer for each switch */ typedef struct InputBuffer *InputBufferPtr; typedef struct { struct List **fifo; /* Input fifos: one per output. */ void *traffic; /* Placeholder for traffic stats …

Member Avatar for Salem
0
135
Member Avatar for F2guy

Can you see why the code from simulation.cpp marked with: // clipped output start and // clipped output end produces the clipped output below.(The "..." is where I deleted repeating output to make it more readable) Letter key can be found below after output. Initializing neural network... SOMa memory usage: …

Member Avatar for Salem
0
140
Member Avatar for F2guy

I am having a problem compiling my code. The following error is displayed: make mpixlcxx -c -O3 potentialqueue_local.cpp mpixlcxx -c -O3 eventqueue.cpp "eventqueue_remote.h", line 20.36: 1540-0063 (S) The text "eventqueue_t" is unexpected. make: *** [eventqueue.o] Error 1 I am fairly new to C++ and not sure if the problem is …

Member Avatar for F2guy
0
577
Member Avatar for charliesindex

I decided to develop a java applet to transfer files to a ftp server. I have no java experience but using stuff from the web and using NetBeans IDE for development, I came resonably close. Here is the code I used. /* * To change this template, choose Tools | …

0
50
Member Avatar for sixstorm1

Hi all, I am trying to use some APIs found in dwmapi.dll (like DwmExtendFrameIntoClientArea), but I have some problems. If I include dwmapi.lib in the dll include list, the the app works fine on Vista, but doesn't want to run on XP since dwmapi.dll is obviously missing. I tried the …

0
121
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for Gribouillis

When several producer threads put items in a queue.Queue, and a consumer thread gets items from the queue, there is no way for the consumer thread to tell the producers that they should stop feeding the queue. This snippet defines a subclass of Queue with a close method. After the …

Member Avatar for Gribouillis
0
320
Member Avatar for F2guy

I have class eventqueue_t which is derived from the abstract class event_storage_t. When I compile the code I get: make mpixlcxx -c -O3 brain.cpp mpixlcxx -c -O3 config.cpp mpixlcxx -c -O3 connection.cpp "eventqueue.h", line 17.29: 1540-0408 (S) The base class "event_storage_t" is declared but not defined. make: *** [connection.o] Error …

Member Avatar for F2guy
0
261
Member Avatar for happygeek

While there is no doubting that virtualization is not only a technology to watch, but one that will move into the mainstream real soon now, there remains a question of just how soon that will actually be. A new survey by [URL="http://www.emedia.co.uk"]emedia[/URL] suggests that the timescale for making that move, …

Member Avatar for lasher511
0
153
Member Avatar for PirateTUX

If you've ever had the (un)fortunate experience of having to work closely with a lawyer, you know that their profession seems to have it's own language. In fact, there are actually courses in law school that teach future attourneys to speak this strange mish-mash of English, French, Latin, and Greek. …

0
76
Member Avatar for Dani

I would like to apologize to everyone who received multiple and malformed newsletters this month. There were some major mail server issues going on ... the first of which being I was trying to send out 150,000 emails over SMTP, and the majority of them were being dropped. Unfortunately ... …

Member Avatar for John A
0
139
Member Avatar for lazylibran82

This code enables one to find the height of a binary tree using a queue and a marker.

0
170
Member Avatar for 1o0oBhP

An introduction to the Win32 GUI. The code creates a simple window that you can play with. Many parameters can be changed if you like! The unusual thing about windows apps is that rather than directly handling inputs (ie the position of the mouse / what control has focus ect...) …

Member Avatar for bumsfeld
0
632
Member Avatar for Chad Gary

The below function works perfectly fine, but in my attempt to add a scope queue to the doSomething2() function so I can give it a scope of 'nbaeffect' like doSomething3() and apply a limit of 2 to both in order to supress the amount of effects that are queue, nothingd …

0
83
Member Avatar for Nada_ward

Hi all How R U I need help , how i can create array inside loop, very time I enter loop I want to create new array .. and enqeue it inside queue ,, the new array every time hide old array ,, please help

Member Avatar for kvprajapati
0
98
Member Avatar for tarakant_sethy

Hi i am doing a client server program in c. waht i feel is everytihng is correct in the c code but there is some problem in the setting. here is the server code [CODE] /* Make the necessary includes and set up the variables. */ #include <sys/types.h> #include <sys/socket.h> …

Member Avatar for Salem
0
93
Member Avatar for glyd

My project is all about queue implementation... please write me a code about calculator with queue. tnx.

Member Avatar for glyd
0
113
Member Avatar for fleem
0
53
Member Avatar for kbarrett

I am extracting information from SQL and writing reports. This [I]should[/I] (I hate that word) be easy... but : All is fine as long as the formatted text fits on one page. However, if the report becomes more involved (more data in SQL) more than one page is required. I'm …

Member Avatar for DdoubleD
0
5K
Member Avatar for forestwwq

I write a small program like following: 1, firstly create a process waiting for keyboard input commands(via getchar()). 2, secondly create a thread in the process waiting on a message queue. each time after the thread receive a message, it can handle the message but cannot print the log message(via …

Member Avatar for frk
0
340
Member Avatar for MoZo1

Well, so if I use static initialization blocks to access another static data inside another class: [code=java] public class StaticTestA { public static Queue queue = new LinkedList(); static { System.out.println("A start"); StaticTestC.queue.add("A"); StaticTestA.queue.add("A"); StaticTestB.queue.add("A"); System.out.println("A stop"); } } public class StaticTestB { public static Queue queue = new LinkedList(); …

Member Avatar for JamesCherrill
0
129
Member Avatar for alantor

Hi, I think I have given up trying to figure this out by myself. If someone could walk me through the process that would be great. I am running windows server 2003 and am trying to get exchange 2003 to work. At the moment, I am using a dyndns domain …

Member Avatar for DimaYasny
0
238
Member Avatar for slacke

I have lots of Drytek > Vigor 2700,2800 routers on the public net. I manage this networks and since this type of routers has Log support I write an application on my linux box to collect those logs. The routers are sending UDP datagrams to a configurable address and port. …

Member Avatar for slacke
0
211
Member Avatar for jadeite100

Hi All: I installed oracle report server 10.1.2.02 I tried the following url and it display the page properly that ask Test run Job: [url]http://xxx/reports/rwwebservice?operation=runJob[/url] When I tried the url: [url]http://xxx/reports/rwservlet/showJobs?server=rep_xxx_oracleas3[/url] It is suppose to redirect me to an url to login. It did the first time. I was able …

0
154
Member Avatar for stella44

[code]public class Intersection { private static String intersect[]= new String[3]; public static void main(String args[]) { // initialize Intersection intersect[0]="A"; intersect[1]="B"; intersect[2]="C"; for (int i=0; i<intersect.length ;i++) {System.out.println(intersect[i]);} Intersection inter= new Intersection(); System.out.print(inter.getIndex("C")); } //get index of intersection public int getIndex(String str) { for(int i=0;i<intersect.length;i++) { if(intersect[i].equalsIgnoreCase(str)) { return i; …

Member Avatar for VernonDozier
0
151
Member Avatar for GDICommander

Hello everyone! I'm having a bad time trying to find a solution to my problem: I'm developping a client-server application. On the server side, I am calling a method, Recoit (receive), that calls internally msgrcv(), a UNIX system call for message-passing purposes. The problem is that I always receive a …

0
74
Member Avatar for k007

This is part of an assignment that I am doing. I have to create a Queue (FIFO) using templates. I have been able to create that and it works. There is one more part to this same assignment where I am unable to figure out how to proceed. Here is …

Member Avatar for k007
0
1K
Member Avatar for jen140

Hello all. I have some problems with compilation while working with WinApi. Here is the code: [code=c++]// include the basic windows header file #include <windows.h> #include <windowsx.h> // the WindowProc function prototype LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); // the entry point for any Windows program …

Member Avatar for jen140
0
255
Member Avatar for malou_baby08

hello, can u pls help me sir about my problem in the level order travelsal?... i did trace my code and i found no wrong. but when i compile it, there's something wrong in it and i dont know where... thank u very much! [code] int count = 1; public …

Member Avatar for malou_baby08
0
69
Member Avatar for lancevo3

I am writing a function that inserts an item into the rear of the queue. [code=cplusplus] template <class T> void Queue<T>::pushBack(const T& item) { QNode<T>* newNode; newNode = new QNode<T>[item]; if (empty()) qFront = newNode; else qRear->next = newNode; qRear = newNode; qSize++; } [/code] It seems like line five …

Member Avatar for lancevo3
0
103
Member Avatar for fawadkhalil

Hey all i m trying to send progaramatically an email to user. i receive message "Email sent successfully".but email is not deliveing... i have two problems 1.Email sent to yahoo id is in queue from yesterday as i checked it in Inetpub>mailroot>queue. 2.Email sent to hotmail id is neither in …

Member Avatar for demigod
0
272
Member Avatar for recycle_carlbin

Hi. There is something wrong with the codes of my levelOrder method. Can anybody help me identify the wrong stuff out here? By the way, I also have another problem,what are the uses of setters? I teacher require us to put getters and setters but then I am totally confused …

Member Avatar for recycle_carlbin
0
127
Member Avatar for Your_mum

Playing about with python I thought about trying to write a program that gets a simple text file eg. hello %s, and using an adress book, loops through it, changing the %s every time into the next name in the adress book, using a queue. But it just doesn't want …

Member Avatar for Your_mum
0
105
Member Avatar for gsuraj02

My program has two threads one for reading the data of the client (RXTHREAD) and putting that data of client in a structure called qstr(which contains client Ip address,message,etc), the object of this queue(put_inq) should be placed in a Structure called (que), the SXTHREAD should then pop the object put_inq …

Member Avatar for asadmalik
0
109
Member Avatar for phpfreek2007

Hi All, For the last 6 months our site has been under severe brute force, syn flood attack. They keep bombarding a single URL of the server and it is xml file. They are not attacking any other URL. e.g. http://www.example.com/rss123/attackedfilename.xml We have removed the xml page from our site …

Member Avatar for phpfreek2007
0
230
Member Avatar for dquiles

Hi, I wrote a query statement in SQL server to take paramaters, and generate then run a sql statement based on which criteria were provided. The tables got pretty massive so I need the query only filter when the value to filter on was provided. When I tried to bring …

Member Avatar for dquiles
0
197
Member Avatar for codedhands

Hello,i am writing an application which involves invoking multiple threads to pick data from a queue and then delete or pop the retrieved data.My codes work well for this purpose but then my application suddenly crashes with a dialog with the following error message: Debug assertion failed! Program:.... Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse) ------------------------------------------------------------------------------ …

Member Avatar for codedhands
0
214
Member Avatar for arvindhar

Hi... I'm using mdaemon 10.0.0... version. for smtp relay. I have problem while relaying mails to aol.com through mifi-microsense.com relay server and it is behind the pix firewall. Error says reverse lookup issue. How do i confirm this problem, this is due to my PTR Record setup issue or some …

Member Avatar for Freaktech
0
169
Member Avatar for jds_14
Member Avatar for NimaJ

I am a newbie to this forum, and this is actually my first post. I am looking for a way to get the object of the currently running thread in boost. To make this short, consider a case in which one wants to implement a semaphor or a condition variable. …

Member Avatar for NimaJ
0
134
Member Avatar for franko75

Hi, I have a slideshow set up on my site which allows users to click back and forward to view images - the transition is an animated slide to the next image. But I now want to set up an automatic fade, which fades in the next image on a …

0
76
Member Avatar for JDCyrus

Hi. I'd like some help with a program that runs over a network. My program uses queue-based distributed computing. Because the computers are all on a LAN and differ greatly in processing power, they receive objects to process only when they request them. (Some can process more than one object …

0
61
Member Avatar for kizUna_rR

hello, everyone... I got an issue here, my db that bind at my applet doesn't load at the web browser but it run very well at appletviewer. here the error : [code] Java Plug-in 1.6.0_13 Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Admin …

Member Avatar for kizUna_rR
0
286
Member Avatar for weblover

hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving …

Member Avatar for weblover
0
206

The End.