1,306 Topics

Member Avatar for
Member Avatar for kay19

Well I have a question and not sure if it's right. Here's the question(Long one). Applications. Build a class called Precinct. The record for a voter will consist of aname (String) and a political party(Boolean)(Two party). The SignInQueue method takes two parameters, a voter name and a party, and places …

Member Avatar for kay19
0
303
Member Avatar for mbarandao

Hello: I need some assistance with the following script configuration. The goal is to run a cronjob with my initial script which would run a mysql query and pull some account ids, it then would create an array of those values and through a for() loop execute a second script …

Member Avatar for diafol
0
2K
Member Avatar for Hayati_mahamad

**how can i create a program that provides 3 types of data structures: linked list, stack and queue.which my program will provide a menu that a user can choose whether to use a linked list, stack or queue.** Example of output: Main Menu 1. Linked list 2. Stack 3. Queue …

Member Avatar for Hayati_mahamad
0
219
Member Avatar for tingwong

Hi I am working on a project on writing our own huffman coding. I am currently having trouble writing the binary 1's and 0's to an output file. It works with smaller input files but for very large files it does not write anything out to the output file. The …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for kshahnazari

I was writing a data structure but suddenly after a little coding a strange error gives that no operator">>" matches these operends and also no operator"=" matches these operends . its just after if (right==1) in the cin>>a[i] and a[i]= mininfinitive the code : #include <iostream> #include <iomanip> #include <fstream> …

Member Avatar for Moschops
0
262
Member Avatar for bluekb

#include <stdio.h> #include <stdlib.h> #include <string.h> #include "queue.h" #include "stack.h" #define NAME_SIZE 20 #define RECORDS_SIZE 100 typedef struct { char studName[20]; int timeEnter; int timeUpdate; }STUDENT; typedef struct { char tutorName[NAME_SIZE]; int tutorTime; STUDENT *ptr; }TUTOR; QUEUE *queue1; STACK *stack1; void getData(STUDENT *studArr[], TUTOR tutorArr[1]); int main(void) { STUDENT *studArr[RECORDS_SIZE]; …

Member Avatar for bluekb
0
349
Member Avatar for bluekb

why I am trying to dynamically allocate memory for this pointer to array of structure I have STUDENT *studArr[] where STUDENT is the name of the structure I tried to allocate like this #include <stdio.h> #include <stdlib.h> #include <string.h> #include "queue.h" #include "stack.h" #define NAME_SIZE 20 #define RECORDS_SIZE 100 typedef …

Member Avatar for MonsieurPointer
0
359
Member Avatar for clouds_n_things

I'm working on re-writing a 2 decade old python program, but I'm hitting a 'resource busy' error when executing. Does anybody have any ideas? The program is below, and the output is below that. Thanks! from scapy.all import * import optparse print "\n--Example format is -s (controller IP: 172.0.0.0), -S(spoof …

0
123
Member Avatar for benshums

Hi, I'm having trouble getting this linker bug to go away. I have 2 files: Socket.cpp and Socket.h. I know that these files are legitamite because my professor gave them to me during last semester. When I remove socket.cpp, everything compiles just fine. But with Socket.cpp, I get these errors. …

Member Avatar for sakthilolita
0
339
Member Avatar for octarock

1.write an algorithm to count the no of items in a queue 2.write an algorithm that searches a given item of information in a simple linked list (using algol or fortran)

Member Avatar for Schol-R-LEA
-2
171
Member Avatar for tumblinmonkeym

I am trying to implement a priority queue with an unsorted array and hit a wall when I received a Segmentation fault:11. I used gdb and got the error: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00000001000017fa in Item<std::string>::setKey (this=0x0, k=3) at PriorityQueueArray.h:27 27 …

Member Avatar for deceptikon
0
872
Member Avatar for turpentyne

I've got a bit of javascript that changes the background image of a div on hover. Then, when they click on a link, the page rearranges, and the clicked menu item changes background image to show which section they're on. (the page never reloads). Unfortunately, after they click, the hover …

Member Avatar for pixelsoul
0
423
Member Avatar for somjit{}

i wrote a code to implement some basics of priority queue , but apparantly its not giving desired output. the code is implemented using binary heap as its data structure. i tried tinkering here and there , nut no luck... i want to display a given number of max or …

0
141
Member Avatar for lauraroxi

Hello. I have a project for queues simulation to do and I have to follow the MVC pattern. My classes until now are: Client, Queue which represent the Model, Controller, GUI which is the View, and the Main class. If I have those 2 classes representing the Model, how should …

Member Avatar for lauraroxi
0
129
Member Avatar for turpentyne

I have a div that resizes on mouseover/mouseoff. Everything works fine except a child div with text that will stay showing if the user mouses off too quickly... Is there a way to prevent this? The div that's getting left on is "#square_caption1" Here's what I've got for jquery: $(".square.one,#link_nest").hover(function(){ …

Member Avatar for LastMitch
0
200
Member Avatar for hwoarang69

error detials: Java Plug-in 10.17.2.02 Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM User home directory = C:\Users\dave ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide …

Member Avatar for hwoarang69
0
203
Member Avatar for shaqib

Hello, I am trying to populate a listbox.here are my codes which works fine. <?php echo "<select name=name value=''>Exten Name</option>"; while($nt1=mysql_fetch_array($result_users)){//Array or records stored in $nt echo "<option value=$nt1[name]>$nt1[name]</option>"; /* Option values are added by looping through the array */ } echo "</select>";// Closing of list box ?> These data …

Member Avatar for phoenix_2000
0
143
Member Avatar for Wnt2bsleepin

I am having a hard time applying Little's Law to two subsystems. A system is comprised of 100 smaller systems. 50 of these have a customer arrival rate of 10 per second and a expected delay time of 5 seconds. The other 50 have a customer arrival rate of 20 …

Member Avatar for rubberman
0
342
Member Avatar for somjit{}

i have to create a queue where the dequeue operations will be random. that is , a random location will be chosen, and deleted after returning the data stored at that location. i was going through the two underlying datastructures that im allowed to use **:** linked list , and …

Member Avatar for somjit{}
0
2K
Member Avatar for karandeepmalik

I was looking at the possible solution to synchronise a bounded buffer ( like queue) using condition variables and think that we probably need two condition variables to correctly implement the synchronisation, one condition varaible will have a queue where the consumer thread(s) will be waiting to see if the …

Member Avatar for rubberman
0
224
Member Avatar for dreday92

I am having an issue implementing the Breadth First Search, Im trying to find the shortest distance between the source city and the destination city. Here is what I have so far, Im stuck and dont know what to do about this issue. #include <iostream> #include <string> #include <fstream> #include …

Member Avatar for dreday92
0
219
Member Avatar for somjit{}

in an assingment, i have to implement a deque ( double ended queue ). the underlying datastructure is allowed to be arrays or linkedlist. only that im not allowed to use any prebuilt java api that does the above. (like the java.util.LinkedList api) implementing the above using doubly linked list …

Member Avatar for somjit{}
0
194
Member Avatar for meetjatin88

Hello Everyone , Can some one please tell me what is wrong in my program. This is basically a program to insert a new node in a binary search tree. The thing is that my insert function is working correctly and the node is getting inserted which i am verifying …

0
97
Member Avatar for carlpike

Edit: I've discovered that the problem isn't the code, but the proxy hangs for several minutes. Is there any way I can set a timeout for this socket so that it can just request a new socket after say 10 seconds? Also, the Timer class isn't working. The classes aren't …

Member Avatar for chriswelborn
0
159
Member Avatar for SamJo22

I'm trying to write a web server but with the code I have but I'm getting the GET/ht.html can't be opened. The html document (ht.html) is supposed to be opened in the browser. What can be added or changed so it'll work properly? The code I have is: #include <sys/types.h> …

Member Avatar for Banfa
0
332
Member Avatar for SamJo22

I'm trying to write a web server but with the code I have I'm getting 'open failed'. The html document (ht.html) which is supposed to be opened in the browser. It seems as though the code I have is not opening the file received through the socket hence it's saying …

0
187
Member Avatar for tricket_7

Going back to the grocery line queue. At the end of the program, it will output how many total customers I serviced, and it is supposed to output my maximum line length during the simulation. I think its obvious that I will use an "if" statement, but how do you …

Member Avatar for tricket_7
0
909
Member Avatar for tricket_7

I am trying to figure out the best way to approach this..... I am creating a grocery line simulation using a queue, and I know that I will want to create a Customer class that has the information for serviceTime. I am weak on creating classes, what I want to …

Member Avatar for bguild
0
785
Member Avatar for mexabet

I successfully created a C++ window but got an error message when I tried to add menus. I will surely appreciate any help to fix the issue. As follows is the code: #include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class …

Member Avatar for mexabet
0
185
Member Avatar for Suzie999

background. I usually test my code in both debug and release mode each time I make changes, but forgot for half a day and now I have errors. I had gotten carried away thinking I was in the zone, and left it in release mode, when I realized and tried …

0
77
Member Avatar for Dman01

Hi guys. I want to write a keylogger which logs all strings I copy via <CTRL>+<C> My problem is that I loose track of interessting links or code-snippets when overdoing it. So I want a basic keylogger which notices every hotkey event and copies the content in the clipboard into …

Member Avatar for dospy
0
231
Member Avatar for fatalaccidents

Hey everyone, I'm new to the concept of stacks and queues. I think I have the basics, but I have a quick question. If I am wanting to swap an object, say x, for another object, say y, in a stack or a queue, is this possible without introducing an …

Member Avatar for bguild
0
228
Member Avatar for AARTI SHRIVAS

<?php //session_start(); include("connection.php") ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Hedgeis-market</title> <link href="market css.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="jquery-ui.css"> <script src="jquery-1.8.3.js"></script> <script src="jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <!-- <link href="marnet_internal_css.css" rel="stylesheet" type="text/css" /> --> <script> $(function() { $( …

Member Avatar for diafol
0
559
Member Avatar for kchat

Hi guys, trying to figure out why i can't insert this LinkList i create (TrainA) can't be placed into the Queue. I keep getting the error 'trainA' was not declared within this scope. Any help will be cool thanks! class Link { public: int iData; // data item (key) double …

Member Avatar for Lucaci Andrew
0
208
Member Avatar for CPT

Hello everyone, I've encounterred a problem that I cannot seem to overcome. For the program to compile there are a few steps necessary to take: from the website [Click Here](http://osl.iu.edu/research/mpi.net/software/) on the download page, one would need to download and install: 1. MPI.NET SDK 2. Microsoft Compute Cluster Pack SDK(this …

Member Avatar for Ketsuekiame
0
384
Member Avatar for proprogrammer
Member Avatar for marc.punzirudu

ok, im working on an assignment implementing a circular queue (fixed size 15), shared memory, normal producer consumer problem, using three semaphores (one for the queue and one for each process). The objective is to have the producer put the characters from mytest.dat (max 150 chars) into a circular queue, …

Member Avatar for marc.punzirudu
0
2K
Member Avatar for yous

Hi Guys Can anyone give me an example on how to retrieve the value 16 in bold under the tagname <td>In process</td> with a webbrowser and insert this value to a texbox. Thanks <tbody> <tr class="odd"> <td>In Process</td> <td class="number">***16***</td> <td class="number">1</td> <td class="number">01:16:48</td> <td class="number">02:54:00</td> <td class="radio"><input type="radio" name="queue" …

Member Avatar for TnTinMN
0
283
Member Avatar for ranjeet kaur

what is the algorithm for insertion in binomial queue and is tt there a concurrent access to binomial queue

Member Avatar for deceptikon
0
49
Member Avatar for adams161

I've been tinkering around with my first IOS project that basically is a chat client right now. It connects to a server and lets you read chat and send chat. I want to next let the user isolate some chat in another page on the story board. They might choose …

0
76
Member Avatar for Cosmo_Kramer

Hello all, I was just wondering if anyone has code snippet for a function that is a multi-queue.....this is for python 2.3 or 2.4 I think so it has to be a bit primitive. The program is simulating people at a store arriving at the checkout, the input from a …

Member Avatar for Cosmo_Kramer
0
217
Member Avatar for stanleyk

hello, on 18.11.12 I registered on programming forums and received an email. I clicked the link provided. Today it allows me to log in, but says I am still in the moderation queue. Is it normal for it to take so long, or is there a problem with my registration? …

Member Avatar for Dani
0
80
Member Avatar for AlexThugNastyTyricebiggumsBello

Ok i made a chat thing for a forum i have but it didn't work but there was a detail box and this came up on it. "Java Plug-in 10.9.2.05 Using JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM User home directory = C:\Users\Patricia ---------------------------------------------------- c: clear console window f: finalize …

Member Avatar for NormR1
0
248
Member Avatar for DangleSauce19

Okay so I am having trouble with my depart function. When I output I keep getting 0 for the license plate number and the count for each time a car moves is not right. Any help would be great. Thank you. ____________________________________________ The BASHEMUP Parking Garage contains a single lane …

0
194
Member Avatar for crownedzero

Still playing with multi-threading and Prod-Con, at this point I've been at this for days. Would love some help debugging; thanks in advance. http://pastebin.com/jhHB9kTY - Main http://pastebin.com/BZSspf3x - Consumer http://pastebin.com/ndzAADJz - Producer http://pastebin.com/p7YdzH1D - Product http://pastebin.com/rxs3WzDT - Message http://pastebin.com/JR5ywgz1 - Utiliy 2 Producers, 4 Consumers Essentially Producers push a message …

Member Avatar for crownedzero
0
264
Member Avatar for Goldfinch

Hi, I'm having some trouble writing a method to sort a LinkedQueue ADT. I find it difficult to keep track of the order things when sorting is concerned (ha ha ha). I'm trying to pull the values out of a Queue which store objects of type PrinterItem. Those objects in …

Member Avatar for Goldfinch
0
160
Member Avatar for whileiforelse

Well this is my assignment for uni. I've done all the main and difficult bits- and now I cannot believe that I'm stuck at the simplest task. Im told to make a menu that gives user three options to choose from. Choosing option 1 will ask to choose from 3 …

Member Avatar for whileiforelse
0
194
Member Avatar for nmajon

i must do an project with sorting using priority queue..i find some things on books but the code was with classes and i don't learned about it ...please can halp me with some oppinion

Member Avatar for mike_2000_17
0
179
Member Avatar for crownedzero

I see this example frequently and thought I'd give it a shot but I've got something unexpected happening with my Queue. I have multiple threads utilizing my producer class but the output doesn't show that it is being written to by each thread. protected Queue<ProductMessage> prodQueue = new ConcurrentLinkedQueue<>(); @Override …

Member Avatar for ~s.o.s~
0
284
Member Avatar for coolbeanbob

I would like thoughts/advice on the project I am working on. I am trying to build a program that simulates the score of a baseball game given individual player statistics. As of right now, the program only has one team batting for nine innings. I am a computer science student …

Member Avatar for JamesCherrill
0
196

The End.