1,306 Topics

Member Avatar for
Member Avatar for jdm

I'm working on a tcp server and client for linux. I want the tcp server to send a 10MB file to it on request and I want the client to save it to local disk. I would appreciate any help on it. Thanks for the help. jdm server: [CODE] /* …

Member Avatar for gerard4143
0
262
Member Avatar for SAM2012

I have a simple query, I am using code for "QUEUE IMPLEMENTATION USING SINGLE LINKED LIST" [url]http://ds4beginners.wordpress.com/2006/12/17/queue-implementation-using-single-linked-list/[/url] for my program but having an issue if you pleas help me. [CODE]public class queue { gcroot<message^> msg; queue* next; public: queue(); queue* enqueue(queue*,message^); queue* dequeue(queue*); void queue_display(queue*); void setbinding(String^); String^ getbinding(void); }object, …

Member Avatar for SAM2012
0
393
Member Avatar for singularity~

I have an integer called: int pID = 0; Inside my while loop I'm using pID++; to increment it. Sometimes the pID doesn't get incremented and sometimes it will. My sample output would be. 0 1 2 2 2 3 4 5 5 6 7 Does anyone have an idea …

Member Avatar for singularity~
0
239
Member Avatar for jdm

I'm writing a tcp server and client program in C on linux. It compiles and works under linux, but when I try to compile it using terminal under mac I get errors. If somebody knows why I would appreciate telling me. Any way I have most of the program done, …

Member Avatar for savoie
0
220
Member Avatar for Buffalo101

Hi, I'm trying to create a thread for running some tasks. I copied the code from an old console application (which compiles fine), but can't figure out why it's not working now. I have searched for the error code and came across this suggestion: "Are you passing the name of …

Member Avatar for jmichae3
0
691
Member Avatar for polarpandabear

Hello Guys, I'm new here and I would like to ask help from you in making circular queue. I'm solving these for days but I can't have any idea anymore to solve for it's algorithm... I made this code so far... [CODE]#include <iostream> #define SIZE 5 using namespace std; int …

Member Avatar for polarpandabear
0
421
Member Avatar for general07z

Hello, This code is for (hospital management system). This code allow you to add patients. There are two types of patients. which is: 1. Normal patient. 2. Critically ill patient. once you added any patient. You will be able to show all patient using "ShowAllPatient;" method. -> i want the …

Member Avatar for WaltP
0
2K
Member Avatar for newbie14

I have socket connection which keep reading data and then it will send it via a queue for next processing in another thread. I notice at times it just stop sending data to the queue. I will print this System.out.println("\n\nSending TO QUEUE : "+message); and stop but I do not …

Member Avatar for JamesCherrill
0
377
Member Avatar for tahsin.rahit

This code is giving me runtime error. Here, first I want to take a integer input which determine the number (n) of nodes in the graph. Then for n-1 time I want take two integer input which will give the adjacency information. [CODE] #include <set> #include <map> #include <list> #include …

Member Avatar for mike_2000_17
0
252
Member Avatar for compEstudent

Here is the assignment: 1. Objective This assignment will introduce you to CPU scheduling. 2. Specifications You are to simulate the execution of processes by a computer system with a large memory, one terminal per user, a CPU, and one disk drive. Each process will be described by it's class …

Member Avatar for JamesCherrill
0
476
Member Avatar for ravsau

Hi guys, I am doing a Java project. For now it's just a program but this program is to be used through the semester. I have hard time thinking what class to work. We need to create a class of anything like cheese, cars, rectangle etc that we will be …

Member Avatar for StephNicolaou
-2
260
Member Avatar for flagstone

I am trying to implement a chat program using epoll on the server side. However, the program gets stuck at epoll_wait(). How should I create an asynchronous chat program? [CODE] #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/epoll.h> #include <fcntl.h> #include <netdb.h> #include <unistd.h> …

0
240
Member Avatar for xavier666

I've tried to make a [URL="http://en.wikipedia.org/wiki/Deque"]DEQUE[/URL] program. My book on data structures (Seymour Lipschutz) doesn't have an algorithm on DEQUES. Neither does [URL="http://www.itl.nist.gov/div897/sqg/dads/HTML/deque.html"]DADS[/URL] give a good description. All I heard was that it could be implemented better with two lists (one forward and one backward) & there are 2 types …

Member Avatar for WaltP
0
261
Member Avatar for ruval002

ok, i need help with changing the state of a process. So far my struct Process has an integer which contains the priority and a pointer next which points to another process, and i need to add a state so that every time i call the function insert() it would …

Member Avatar for L7Sqr
0
468
Member Avatar for ruval002

I need help how to change the state of a process using link list queue. any help is appreciated. This is part of my code. what i need is that every time i insert a process im suppose to change its state to READY, and every time i need to …

0
80
Member Avatar for ruval002

So i have implemented the following link list, but i just want to know if i can sort the link list. any help? [CODE] #include<iostream> #include"ll.h" using namespace std; // PURPOSE: contructor which initializes front and rear to NULL and count // to 0 LL::LL() { front = NULL; rear …

Member Avatar for Kanoisa
0
276
Member Avatar for Q8iEnG

Dear all, I've been working on this template for a an non-profit society. Everything seems fine with me I edited like tons of the code, sadly, one thing annoyed me a lot and couldn't be able to solve it yet. The problem is in the top menu, when you hover …

Member Avatar for Q8iEnG
0
268
Member Avatar for techunk

I am trying to develop (on c#) a Point of Sale program(deployed on machine 1), with integrated kitchen display system(deployed on machine 2). I pretty much have an idea how to develop the individual programs, however, I haven't tried integrating thee machines (to function as one) before. Here's a brief …

Member Avatar for skatamatic
0
728
Member Avatar for bobanderson93

something is wrong with my dequeue function. When i try to output the value that's about to get deleted i get garbage on the console window. the enqueue function works fine. [CODE]class Queue { private: int value; Queue *next; public: void dequeue(); void enqueue (int num); }; Queue *head=NULL; void …

Member Avatar for Karkalash
0
179
Member Avatar for geneh23

Hey everyone, So I am making a sample website for now and will be uploading it when I can but I want a "lavalamp" style menu..however I can't seem to get the hover "slide/float" to work right..it shows the menu bar but wont show the hover effect..can anyone help me …

0
73
Member Avatar for SaimaAsif

Please help me its urgent... I have a MSDN Queue class, I need your suggestion can I make a message class and enqueue its objects as an element. [CODE]// new.cpp : main project file. #include "stdafx.h" #include "message.h" using namespace System; using namespace System::Collections; void PrintValues( IEnumerable^ myCollection ); void …

Member Avatar for SaimaAsif
0
238
Member Avatar for emmas4impact

Hello, I'm working on a Moving Ball project and on the moving ball there are random number so i need to use the keyboard or the mouse to click on the number printed on the moving but i dont know how to go about it. here is the code below: …

Member Avatar for emmas4impact
1
2K
Member Avatar for jeraldmuthu

please find the attached file and see the output. And help me out please this code getting system current date and function. but my requirement is get date from database like the clock want to spin. Please help me out to fix the error d3.js [CODE] (function(){if (!Date.now) Date.now = …

0
245
Member Avatar for iamuser_2007

Hey guys I am learning CPP, I am looking for some topics material but I couldn't find any helpful material any where. It is also not available in my C++ Book, These topics are from older edition of C++. [ICODE] The Locator Design Pattern, Tracking Elements as they Move Defining …

Member Avatar for raptr_dflo
0
147
Member Avatar for whodoes21

Hello. We have been asked to write a program of an event driven simulation in dynamic partition. where we are given a number of jobs with it's given time and job size. the job should remain on the memory until completion (time clocks down to 0). the program should measure …

Member Avatar for Mike Askew
0
315
Member Avatar for SaimaAsif

// I want to make a program having Queue class where message class instances are being used as messages. Later I want to use another class exchange that takes the messages and distribute to the Queue according to messageID. if message id is "111" the Queue named Q11 should be …

Member Avatar for SaimaAsif
0
763
Member Avatar for avinash_545

Hi everyone. I am currently working on a small project, where I have to interface an ERP (OpenERP) with another system (SugarCRM). For that, I am going to make use of the middle-ware Mule ESB, and to retrieve the ERP data, I will make use of a Java EE 6 …

Member Avatar for avinash_545
0
174
Member Avatar for SaimaAsif

Error: Debug Assertion failed: Expression: BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Code: #include "stdafx.h" #include<iostream> #include<stdlib.h> #using <System.dll> #include< math.h> #include< time.h> #include<List> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; int someSize=2000; # define SIZE 20 class queue { int aMsg[SIZE]; int front; int rear; public: queue(); ~queue(); void insertMessage(int i); int removeMessage(); …

Member Avatar for thines01
0
250
Member Avatar for mustad104

I try to implement ford fulkerson algorithm but i have problems at my_alg function.I think the reason for this problem is find_edge function.since when i find the edge and increment its flow(asker_sayisi),at the next line it seems to be incremented but at the next line when i find the same …

Member Avatar for Clinton Portis
0
737
Member Avatar for rajdey1

Hi I am implementing a project in C# in which I have to use a Queue. Now this Queue will be accessed by three different threads let me call them thread "A","B" and "C" . Thread "A" and thread "B" will be alive through out the Applications life time and …

0
56
Member Avatar for sidss02

Question:I am not able to start the codes of project in c++. Your clock has gone dead because you forgot to wind it or replace the battery, or you had a power outage. This clock has hands, so you must turn them to adjust the time. Which way, and how …

0
58
Member Avatar for muse_squall08

[CODE]#include <iostream> //standard input and output #include <fstream> //file input and output #include <string> //for strings #include <exception> //catches exceptions #include <sstream> //stringstream comes from here #include <algorithm> #include <stack> #include <queue> using namespace std; bool writeFile(const string &data); //writes strings to file bool readFile(); //read file bool palin(const string …

Member Avatar for WaltP
0
2K
Member Avatar for newbiecplusplus

Hi, i'm really stuck with this linked list and i feel tottaly out of my depth. Hopefully i can get it a bit clearer! what im trying to do is a print simulation with three priorities and im trying to make the linked list to act like the queue so …

Member Avatar for bbman
0
136
Member Avatar for deeksha923

Hey ppl im a student and i just started studying robot framework using python.Can anyone pls help me out with the submissions. It is really important for me. I just cant get the whole thing how much ever i try.I have come up with the following code for fibonacci series(given …

0
101
Member Avatar for miss curious

Number of 'ADD' and 'REMOVE' operations required to access n/2th element of a queue of 'n' elements so that the original queue remains the same after the access is: a) 4*n b) 8*n c) 4*n-1 d) 8*n-1 The answer if a). Somebody please tell me how???

Member Avatar for WaltP
0
62
Member Avatar for Hiiero

Can I not do the below code? [CODE] class box { public: box(){} box(int v){x=v;} ~box(){} int getx(){return x;} private: int x; }; ____________________________ #include <iostream> #include <queue> #include <cstdlib> #include <ctime> #include <windows.h> using namespace std; #include "Q4.h" int main() { queue<box> B; int a; cout<<"How many boxes would …

Member Avatar for jmichae3
0
173
Member Avatar for eavila

Hey, so as you can tell, this is my first attempt at writing a class. I put in a mock int main() in order to follow what exactly is going wrong. As far as I can tell, every time the struct in push is used, it always has the same …

Member Avatar for gusano79
0
145
Member Avatar for coolbeanbob

Hello everyone, Like the headline says, my computer goes crazy when I run this program. The problem did not occur until I added lines 80-83. When the program is run, my computer starts beeping and weird characters show up on the console. Any thoughts on the problem and why it …

Member Avatar for WaltP
0
151
Member Avatar for BoBok2002

I am working on a project and part of the instruction goes like this: "The whole system allows up to 10 processes currently stay in memory, only one of them is running on the CPU, while the others are in either the Ready Queue or blocked in the Disk queue. …

Member Avatar for BoBok2002
0
2K
Member Avatar for taylor0934

I am having trouble starting, I have the default constructor. Just set Head, Tail, Pred and Succ equal to 0. The copy constructor I am having problems with, don't know where to start. [CODE]enum Direction { front_to_back, back_to_front }; template <typename EType> class PQueue { private: struct Node { EType …

0
88
Member Avatar for lo0lo0999

Now I'am using Microsoft Visual Studio to compile this program in C++ but when I compile it I have so many 00000 with no end for this procces.. [CODE]# include<iostream> using namespace std; # define SIZE 5 class queue { private: int a[SIZE]; int front; int rear; public: queue(); ~queue(); …

Member Avatar for lo0lo0999
0
306
Member Avatar for Sumitbhai

Dear Friends, When we goes to menubar of application in focus.The application sends WM_ENTERMENULOOP message to Windows and Menubar is shown to us. When Menubar hides an application sends WM_EXITMENULOOP Message to Windows. Is it possible to detect event when WM_ENTERMENULOOP /WM_EXITMENULOOP message is sent to operating system by an …

Member Avatar for Antenka
0
213
Member Avatar for coolbeanbob

Hello all, I have a text file set up as follows. 1 1 1 2 2 2 The program below is not reading the first line. The code below will only read 2 2 2. What am I missing here? main.cpp [CODE]#include <iostream> #include <limits> #include <cmath> #include <cstdlib> #include …

Member Avatar for coolbeanbob
0
165
Member Avatar for the_azn_invasio

this is my code but i couldnt get phase 2 to print out can anyone help me please? thank you! [CODE] import sys import string NUM_ARGS = 3 GLOBALSTACK = [] TAG_STACK = [] # getFile() Gets a valid file name # Input: None # Output: fileName, the name of …

Member Avatar for woooee
0
300
Member Avatar for kyriacos1986

I have been asked to create to check if a word is palindrome or not. But I am facing some problems. After the code you can see the messages that I received from the compiler. [CODE] import java.util.*; public class Palindrome { public static void main(String[] args) { [B]Stack<String> stack …

Member Avatar for kyriacos1986
0
2K
Member Avatar for asong

Your task is to write a program that checks html files, (web pages) to determine whether the embedded XHTML tags are balanced. Balanced tags are necessary for the file to be a valid XHTML file as explained above. The first phase takes care of reading the file and finding all …

Member Avatar for asong
0
236
Member Avatar for coolbeanbob

Hello, I am getting the following error from line 108. I'm trying to find information on the error. The elapsed_time function returns a double, so I'm not sure where there is a problem. error C3867: 'Timer::elapsed_time': function call missing argument list; use '&Timer::elapsed_time' to create a pointer to member [CODE]#include …

Member Avatar for coolbeanbob
0
149
Member Avatar for coolbeanbob

Not sure if anyone is familiar with column sort. I have this very close to working, but there are a few instances where the numbers are out of order. They occur at the beginning of each new column. I am looking for bugs in my transpose(), reverse_transpose(), shift(), and reverse_shift() …

0
72
Member Avatar for C@un5el@r

Hi - I know that this has been somewhat discussed in a couple of threads, but I haven't seen anything with an actual answer. What would the design or pseudocode look like? Write a program that checks HTML files to determine whether the embedded XHTML tags are balanced. The program …

Member Avatar for TrustyTony
0
480
Member Avatar for xxunknown321

[COLOR="Red"]First off let me just say i don't want anyone to do my homework for me. I get a greater sense of satisfaction knowing that I did the work. with that being said I'm looking for some way to start or some input on what measures I should take while …

0
130

The End.