1,306 Topics

Member Avatar for
Member Avatar for cwarn23

Hi and I found a script at the below website but appears not to work for me. I'm using the Netbeans IDE and Java Version 6 and the link where I found how to use cookies in Java applets is at [URL="http://www.rgagnon.com/javadetails/java-0180.html"]http://www.rgagnon.com/javadetails/java-0180.html[/URL] However my partial script below (snipped chunky code) …

0
94
Member Avatar for Hanyouslayer

I searched for this topic first, because it is pretty popular, but I didn't find much to help. What I was instructed to do was convert a prefix expression to a postfix expression. I have to use a stack and a queue, which is different than many other threads about …

Member Avatar for Hanyouslayer
-1
1K
Member Avatar for truekid

-------------------------------------------------------------------------------- So i just realized after checking my emial that i have a python hw for my comp sci class due tom night at 12am . I read the hw and i am a bit lost. I will be starting it tonight once i get out of work. The task …

Member Avatar for sneekula
0
106
Member Avatar for happygeek

Jumping the queue for BT Broadband is possible, it would seem. Possible, but not easy - unless you happen to be the Chairman of BT that is. Imagine you've been living without broadband for years because BT cannot supply it to your rural residence. Now imagine if the chairman of …

0
248
Member Avatar for natureG

Hello, I am having a problem. The task I have been given is to implement a queue using a linked list. One of the functions of the program is it accept input from the user and write this to a file. The program, thus far, accepts the information, but prints …

Member Avatar for meghana8818
0
882
Member Avatar for stacia

hi i am a fourth year computing major and i need some help with the following assignment. The program is to simulate the operation of one day's activity at an airport, and output the times waiting to land and take off for each BWIA flight. the program should include the …

Member Avatar for m_usman
0
2K
Member Avatar for wiselka

[code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CarsRUS { public partial class Cars : Form { private SqlConnection conn; private SqlDataAdapter daAddresses; private DataSet dsAddresses; private DataGrid dgAddresses; private const string tableName = "CarRUS"; public class Customer { …

Member Avatar for sknake
0
193
Member Avatar for miag

i have to write a program in c++ that reads numbers(weight of an item) from a file until now i got it:) and then place this items in boxes.the goal is to use as less boxes as possible.Each box can weight no more than 10. place each new item in …

Member Avatar for miag
0
112
Member Avatar for gitech

Hai Friends, Iam using swing application in my project with short cut keys to perform some action, it takes few seconds to process(retrieve data from server to client) ,when i press the shortcut key for three times means the action is performing thrice, i want to perform single action.is there …

Member Avatar for gangsta1903
0
92
Member Avatar for Afupi

My project requires I use the right-hand method of solving a maze. I have to use a stack to keep track of and eventually print out the path to the exit. I know the way I am trying to keep track of each point is wrong because using mazeArray[xCoord][yCoord] is …

Member Avatar for Afupi
0
227
Member Avatar for teddy78

I have a code that uses queue in c++ and 3 class Message, MessageSender, and MessageReceiver to express queue content. The program runned but it expressed wrong output as I hope. I inputted 3 message object but queue expressed no messages received. Please help me find errors. I think this …

Member Avatar for teddy78
0
460
Member Avatar for MRWIGGLES

if i had a data file with html/xhtml tags: Code: <html> <head> <title> data file </title> </head> <body> <center><h1> heading 1 </h1></center> <b>bolded</b> <P>paragraph</P> <P> <br /> how would get a python program to read ONLY the start and end tags and and enqueue them in a queue? for example, …

Member Avatar for vegaseat
0
214
Member Avatar for ramjeev

On firing an event at a keyReleased or actionPerformed(button click).This event fires continuosly whenever I click.Say,for 10 clicks, 10 events are in queue.I want to clear remaining 9 events while first processing. -thanks

Member Avatar for ramjeev
0
74
Member Avatar for crazyboy

hi friends ... i want help regarding file management in windows. what i want to do is , Keep track of all files and folders created or deleted during a period of time. for example , during 5 to 6 pm somebudy else is using my computer. so at that …

Member Avatar for crazyboy
0
196
Member Avatar for JW149

Greeting I have finished a lifetime of programming multiuser databases running on mainframes using PL/I, and now I want to play with Test Driven Development. I've not done it before and sounds like a step forward. The project I'm working on is multithread and I am trying to see how …

0
22
Member Avatar for nida

i have made a programe of queue in c++ code is : [code] #include<iostream.h> #include<conio.h> #include<stdio.h> #include<stdlib.h> #include<process.h> #define maxsize 5 struct que { int items[maxsize]; int rear , front; }; void insert(struct que *,int); int remove(struct que *) ; int empty (struct que *); void makenull(struct que *); void …

Member Avatar for Me_Nit
0
231
Member Avatar for disturb

Please can anybody try and figure out these two questions here. "Q1: **Using the following class definitions of stack and queue classes write a templated function reverseQueue(?), that takes a pointer to queue as a parameter and uses stack object (or pointer to a stack object) to reverse the given …

0
50
Member Avatar for Wong23

I am given the class definition of stack and queue classes where I have to write a templated function called reverseQueue(?) that takes a pointer to queue as a parameter and uses stack object to reverse the given queue. The function call to reverseQueue should reverse the data of the …

2
229
Member Avatar for d7o0om

hey, how's everyone, i need help with a java program, i'll appreciate any help. i'm need to write a program in java that will test if the input is a Palindrome or not. i found a couple of programs, but they use a (do-while) loop which i'm not allowed to …

Member Avatar for Ezzaral
1
354
Member Avatar for zyrus001

I though it'll be interesting to look at threads and queues, so I've written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it sequentially. I'm still very new to python and don't really know why the treading script takes …

Member Avatar for Gribouillis
0
266
Member Avatar for NinjaLink

Hello, I need help reversing elements in a queue using Recursion. My problem is that when I print out the reverse, it does not show the numbers on the screen. However my program compiles and runs. My question is...How come the numbers in reverse are not showing? Thanks for anyone …

Member Avatar for NinjaLink
0
804
Member Avatar for NinjaLink

I need help with my print function, so I can print the elements in a queue. The print function, that I have now is the last function in my header file. I tried to do a small simple program to see if it works, but it prints nothing to the …

Member Avatar for NinjaLink
0
120
Member Avatar for NinjaLink

I am trying to determine if a word is a palindrome or not using queues, but I am receiving the wrong results. I have tried several things to get it to work using the boolean variable isPalin. Will someone lead me to the right direction please? I have been trying …

Member Avatar for JasonHippy
0
120
Member Avatar for cproud21

I have the following code that tests a string to see if it is a palindrome. The only error I am getting is when I try to pass each character to the queue and stack. Is there another way to pass it to each? [CODE]//Implement the palindrome-recognition algotithm described in …

Member Avatar for BeyondTheEye
0
122
Member Avatar for NinjaLink

I recently have a thread open, but I feel it is starting to get too long, and the topic is kind of old since I have a new problem now. What I am trying to accomplish here is determining whether a word is a palindrome using queues. My program compiles …

Member Avatar for NinjaLink
0
199
Member Avatar for ssDimensionss

hi im trying to write some code for a priority queue using an unsorted array..it should be easy but i have a few concerns about it.. say if i have a graph of something like this: node 0, priority 100 node 1, priority 50 node 2, priority 200 node 3, …

Member Avatar for ssDimensionss
0
193
Member Avatar for NinjaLink

Hello I am trying to determine whether a word is a palindrome or not using queues in my program below. However, I am currently having a problem. When I compile and execute my program, the output screen comes up and disappears very fast. Afterwards, I ran the program using the …

Member Avatar for jonsca
0
109
Member Avatar for sonygamer

Hello everyone, I'm currently having some problems with this code. I am getting many compiling errors and i was wondering if you guys could help get rid of them. [CODE]#pragma once #define CAPACITY 128; typedef int QueueElement; class Queue { public: Queue(); int empty(); void enqueue(const QueueElement & value); void …

Member Avatar for sonygamer
0
179
Member Avatar for chunalt787

I am new to message queues and IPC in general. I am trying to have a process establish the queue and send a message. Then I fork and the child will read the message. The goal is to measure the execution time for different sized messages. The msgsnd is returning …

0
100
Member Avatar for tina05

Hi I want to display a variable menber array queue, and the definitions of the class are The Array.h template <class DataType> class Array { public: Array( int size ); private: T *ele; }; The Array.cpp Array<T>::Array( int size ) { if ( size < 1 ) { capacity = …

Member Avatar for jonsca
0
379
Member Avatar for kochan
Member Avatar for jbennet
0
47
Member Avatar for adam20091

Please Help I want c or c++ code to solve 8 puzzle problem using depth first search and breadth first search and each search print out cpu time and memory space of the queue

Member Avatar for zohal
-1
106
Member Avatar for NinjaLink

I need help with the programming segments below, so I can study for them...I showed my effort on trying to do them. However, I don't believe they are right. If someone can assist me with this, I will definitely appreciate it. [B]1. Determine if a word is a palindrome or …

Member Avatar for NinjaLink
0
179
Member Avatar for Raghusys

I have been told to write a c or c++ program for TCP server client program with some conditions that is listed below: You are to implement a synchronization server managing barriers. Your synchronization server should be a stand-alone single threaded process that continuously awaits requests from other processes (the …

0
73
Member Avatar for anitha joe

Hey All, I am a newbie in C programming. I have written a program which has a separate function to send messages to 2 neighbours in the same network. This function is called from the main program. Also I have a thread which is created by the main function. The …

Member Avatar for BestJewSinceJC
0
99
Member Avatar for katwalatapan

Hello, Could anyone please explain a reason why data could not be received from a POSIX message queue using mq_receive(), called from a different file. Following is my code for a test that i'm running to try and transfer data from one file to another. main.c [code=c] #include "recfun.h" int …

0
127
Member Avatar for ankit894u

need to decode and encode the following text=== {Newton’s Law of Software Engineering Law 1: Every Software Engineer continues her/his state of chatting or forwarding mails unless s/he is assigned work by external unbalanced manager. Law 2: The rate of change in the software is directly proportional to the payment …

Member Avatar for asb77777777
0
719
Member Avatar for low1988

Firstly ,i'm not asking about the code,i need suggestion and idea how to do it.I don't even know what should be the first thing in the main menu,because i think it is not some sort of input and output program.I thought i might relate to something like queue or stack …

Member Avatar for crazyboy
0
128
Member Avatar for Logi.

Evening Folks, Having a bit of a problem with somthing i am trying to code, wondering if anyone here can help.... The basic idea is that i am trying to build a Priority Queue of binary tree nodes so that they are stored in ascending order by a number stored …

Member Avatar for quuba
0
886
Member Avatar for chetangudi

hi, can anybody help me how to represent queue of stacks. if anybody gives me some idea then i would be greatful to them. thank you.

Member Avatar for Ancient Dragon
0
28
Member Avatar for xxDivineVinny

How would i use the find function in splay tree for the following code? I want to be able to see if that node is in the tree, and if it is not, then i would want to be able to return false. here's the link to the splay tree …

Member Avatar for Tom Gunn
0
234
Member Avatar for crystality

Hi! I can compile the following code, but when I try to run it with the line [B]a.out File1.txt[/B], my programming partner get a seg fault, and I get this error: [INDENT]a.out: relocation error: a.out: symbol __cxa_allocate_exception, version XXABI_1.3 not defined in file libstdc++.so.6 with link time reference[/INDENT] I found …

Member Avatar for dkalita
0
356
Member Avatar for crystality

Hi! I'm getting this error when compiling: $ g++ index.cpp index.cpp:85: error: 'friend' used outside of class index.cpp: In function 'std::ostream& operator<<(std::ostream&, const GrabStuff&)': index.cpp:88: error: 'myLineNumbers' was not declared in this scope Links to included files: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/mystring.h"]mystring.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/string.cpp"]string.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.h"]SplayTree.h[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.h"]QueueAr.h[/URL] And for fun: [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/SplayTree.cpp"]SplayTree.cpp[/URL] [URL="http://users.cs.fiu.edu/~weiss/dsaa_c++/Code/QueueAr.cpp"]QueueAr.cpp[/URL] [CODE]#include <iostream> #include <fstream> …

Member Avatar for crystality
1
735
Member Avatar for mariaseban123

Dear programmers, My name is Thomas . I am a really bad situation now . Plz help me becoz i dont know VB .net . But suprisingly i had to look after a telephone call capturing system in a famous hotel in dubai . The s/w is developed using vb …

0
63
Member Avatar for lashatt1

[code]#include <windows.h> #include <commctrl.h> #define IDD_DIALOG1 101 #define IDB_TREE 134 #define IDB_FILE 135 #define IDI_ICON1 136 #define IDC_TREE1 1059 #define IDC_DELETE 1061 #define IDC_ADDROOT 1062 #define IDC_CHILD 1063 #define IDC_DELALL 1065 /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a …

-2
212
Member Avatar for hangulagerson

1. Write a program to implement a static circular queue. It should include the following functions: i) Enqueue – To add an element to the end of the queue [4] ii) Dequeue – To remove an element from the front of the queue [4] iii) IsEmpty – To check whether …

Member Avatar for yellowSnow
0
115
Member Avatar for Mr Bin

#include <stack> #include <queue> #include <iostream> #include <fstream> using namespace std; char num[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}; char ope[4] = {'+', '-', '*', '/'}; bool isope(char); bool isnum(char); int prio(char); queue<char> ReversePolish(); void write(queue<char> ch); void main() { queue<char> q; q = ReversePolish(); …

Member Avatar for VernonDozier
-1
98
Member Avatar for aomran

I have a new assignment about Huffman encoding, there is part of the assignment that is not clear to me, I searched the web, but could not find an answer, I need some help to understand this part. it is as follows: The standard algorithm states that you should use …

Member Avatar for Lerner
0
70
Member Avatar for scantraXx-

Hey guys. I need help with these questions please :( 1. Write a function that takes as a parameter a queue of integers and returns a copy of the queue with all the elements stored in reverse order. Use a stack as a helper data structure. [code]queue<int> reverseQueue(queue<int> q) // …

Member Avatar for chunalt787
0
143
Member Avatar for Tigran

Hello, I'm making a browser based game in php and so far it's going really good. However I have a doubt about a script i've written. This script does alot of calculations using the data from the mysql database i'm using. So it reads and writes quite alot. And the …

Member Avatar for network18
-1
96

The End.