2,965 Topics

Member Avatar for
Member Avatar for anisha.silva

Hi i have a method as below public void sendDataToCleint(ref UpdateClient uc,ref QueryClient qc,ref FailClient fc) { uc.setValue(false); qc.setValue(false); fc.setValue(false); while (_data.Count != 0) { string a = dataOUT(); string[] split = a.Split(new Char[] { ' ' }); if (split[1] == "NEW") { uc.setValue(true); qc.setValue(false); fc.setValue(false); uc.getData(a); // how do …

Member Avatar for Momerath
0
136
Member Avatar for nah094020

Ok cant seem to find the null pointer exception error on my code one moment its working fine the next when i add the 20 i get an error, and i dont know if this is what messing my find method. Between my tree is supposed to be a binary …

Member Avatar for Taywin
0
217
Member Avatar for bguild

I want to create a word processor. It seems like a useful project because I have strong feelings about how modern big word processors like MS Word and Open Office don't do things right, so my solution is to make one with more modest features but with the huge advantage …

Member Avatar for mike_2000_17
0
1K
Member Avatar for nah094020

Ok so this is my task: Description: Create a generic class called GenBinTree. GenBinTree will use nodes that store a value of the generic type to store its contents. This tree will not be a search tree (no ordering of nodes by value). What ges me its the the part …

Member Avatar for Taywin
0
653
Member Avatar for vinotd

01) You are to design a working data center with a PSTN network and convergence to IP. The network being based on an SS7 concept of Digital Networking. Meaning you need to consider a normal PSTN, IP network and a UMTS connection for mobile working force. You will work as …

Member Avatar for happygeek
0
141
Member Avatar for Kyle Willett

Hi I have a CS class assinment that invloves solving a word search puzzle with a brute force string matching algorithm. I have made a lot of head way in getting the four search methods to work, however when I search for words that end along the edges of the …

Member Avatar for Kyle Willett
0
4K
Member Avatar for echocoder

I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = …

Member Avatar for echocoder
0
1K
Member Avatar for Rishabh876

so i was trying to make a binary tree program. just inserting and deleteing. some how i messed up. i think insertion is ok till level 1 after that stays on level 1 only. also the function to delete the whole tree is not working. it only deletes node at …

Member Avatar for Rishabh876
0
316
Member Avatar for prince26121991

I just want to enter of 5 students data in structure but this loop is not running. pls help me out #include<stdio.h> #include<conio.h> #include<string.h> struct student { char name[20]; int age; float marks; } a[5]; main() { int i; clrscr(); for(i=0; i<5; i++) { printf("Enter the name of student"); gets(a[i].name); …

Member Avatar for prince26121991
0
121
Member Avatar for firdousahmad

Dear Visitore of this Question I m New to VB.net i have declared a structure in vb.net and i want to give values to its members how could i can do that help me plz Structure Employee dim inta as integer dim strs as string end structure how to intialise …

Member Avatar for firdousahmad
0
247
Member Avatar for sharonC

I am trying to develop a method that can find common elements in a simple array with a linear run time O(n + m). This is an old school problem, i.e., no hashsets, hashtables, arraylists. Here is what I have so far. import java.util.*; import java.util.Arrays; public class CommonElements3 { …

Member Avatar for NormR1
0
255
Member Avatar for thewilf

Hi All, Quick one, I am calling a web service that returns a dataset but the company doesn't know what structure is in the dataset anymore as the original programmer has left. The webservice code calls a stored procedure that they can't access. Is there anyway to call the webservice …

Member Avatar for TnTinMN
0
195
Member Avatar for timetraveller1992

I'm new to network programming. And I skimmed a few pages of beej programming guide and found some useful info but couldn't clear one doubt. We use bind to associate a sockaddr_in structure with the socket descriptor so that the kernel can send data to the network adapter and thereby …

Member Avatar for timetraveller1992
0
148
Member Avatar for nitin1

Can anyone give me hint how to develop the suffix array part ? i know the concept, LCP array design but i am not gettinng how to implement in C ? can anyone please help. I know the uses, algo of suffix array as i have read a lot on …

Member Avatar for mrnutty
0
161
Member Avatar for zeppelyn

I'm nearly complete in figuring out this program, but for some odd reason, my program will either output "segmentation fault" or a "floating point exception" when it attempts to evaluate the postfix expression. The objective of the program is to take in an infix expression, convert it to postfix, then …

Member Avatar for Ancient Dragon
0
646
Member Avatar for rhowell

I'm working with some old code and the users tell me that the original program's output was a single binary file containing multiple stuct data. The output I get is a binary file containing a single structure. The comment also indicates that this what is happening but I need to …

Member Avatar for poornamoksha
0
254
Member Avatar for mrar85

ok so , i have a sql query puzzles . say that i have a table "PERSON" with the data look sumthing like this: PERSON Name ID ----------------------- John 12123 Kimberly 33311 Leo 87892 And i have a table score that look sumthing like this: SCORE ID MARKS ------------------------ 12123 …

Member Avatar for rch1231
1
703
Member Avatar for shanki himanshu

where is union required? please explain with an example where having union is a better choice than any data structure.

Member Avatar for deceptikon
0
130
Member Avatar for vicky30312

Im in a programing class and my teacher had a heart attack and is away, the supply knows nothing. The project is to create a program using a swtich structure to calculate the weight on a specific planet. I have no i idea if i am doing this right. Can …

Member Avatar for Ancient Dragon
0
278
Member Avatar for cody.reddoor

public void inOrderTraversal(TreeNode node) { if(node == null) { return; } inOrderTraversal(node.getLeft()); System.out.print(node.getKey() + " "); inOrderTraversal(node.getRight()); } I wrote this code for going through a binary search tree and printing out the items in order from low to high. it works just fine but i need to get it …

Member Avatar for Taywin
0
283
Member Avatar for InsightsDigital

As internet marketers, we need to measure the stickiness value and engagmenet level of visitors to a site. Thus, many companies have used Google Analytics in the past few years since it is FREE. But there were other companies who preferred to still use paid tools like WebTrends, Omniture, and …

Member Avatar for TopCat23
0
229
Member Avatar for s1lkman

import java.util.*; public class MyLinkedList { private Node head; private class Node { private String element; Node link; } public MyLinkedList() { head=null; } public void insertAtHead(String ele) { Node curr = new Node(); curr.element = ele; curr.link = head; head=curr; } public void insertAtTail(String ele) { Node curr = …

Member Avatar for Taywin
0
120
Member Avatar for BoulderMen

I am trying to write a program to make a list of books using linked list. I am using C language. My program crashes as soon as I finish entering the list. It is supposed to print the list before exiting. Any ideas ? //Defining what libraries should be included. …

Member Avatar for sachi059
0
290
Member Avatar for tvm78

Alright, so I am designing a program that contains binary trees to function as a parser. I have encounted a very strange problem that is causing my program to fail while it is running. I have done several tests and narrowed down the incidents. Ok, so this results in a …

Member Avatar for mike_2000_17
0
357
Member Avatar for themaj

I have a DBF file with 1400+ rows and 32 columns and I need to write this to an Access DB table. The Access table was created by modifying the original structure of the DBF table in which I removed 12 unnecessary columns. I have been successful at loading the …

Member Avatar for kRod
0
746
Member Avatar for dreday92

I was wondering why the compiler keeps telling me #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; const int PatternSize = 8; typedef int OperandArray[PatternSize]; // the major data structure, the BitPattern class class BitPattern { public: // default constructor, sets all bits to zero …

Member Avatar for sfuo
0
108
Member Avatar for tux4life

A program which displays the prime factors of a given number, all the 'hard' work is done by the [B]factorize()[/B] function: [CODE=c] /* Find out the prime factors * of a given number and print * them on the screen */ void factorize(int n) { int d = 2; if(n …

Member Avatar for delta_frost
0
796
Member Avatar for heshanm

Hi All, I want to generate time table reports. A form includes labels to enter grade, class and stream. After selecting data user should click on "Generate" button and relevant time table details. The data is submitted for the following page and there was an empty set of data shown …

Member Avatar for smantscheff
0
224
Member Avatar for Michael27

This tutorial is about extension methods in c# **What is an extension method** Sometimes it is necessary to add functionality to a library for which you do not own the source code and where using inheritance to subclass functionality is not viable. This problem can be overcome with the careful …

0
172
Member Avatar for dreday92

Can someone tell me why i get the error code "ISO C++ forbids comparison between pointer and integer" for lines 135 and 149 #include <iostream> #include <iomanip> #include <string> using namespace std; //Structure used to store the name, number of the players, and the number of points of each player …

Member Avatar for Geli19
0
173
Member Avatar for donial

I want a simple data structure project using C ........ Any one please give me idea.... give me a title....i am very confused....:confused:

Member Avatar for rubberman
0
227
Member Avatar for superchica08

hello everyone I was wondering if anyone could explain big-oh estimate to me for c++ data structures. I do not understand it that much and does anyone know of any good websites that have good information on c++ data structures i would greatly appreciate it. Also could anyone explain to …

Member Avatar for superchica08
0
270
Member Avatar for cool_zephyr

Could anyone tell me how to make a BSP tree?? like what things should i consider to implement it?? i'd be grateful if anyone gave me a list of basic steps to implement it..thank you

Member Avatar for cool_zephyr
0
142
Member Avatar for ceck30s

I have a text file that contains something like this: # Comment # Comment # Comment # Comment # Comment Comment # Comment #Raw SIFs at Crack Propagation Step: 0 # Vertex, X, Y, Z, K_I, K_II, K_III, 0 , 2.100000e+00 , 2.000000e+00 , -1.000000e-04 , 0.000000e+00 , 0.000000e+00 , …

Member Avatar for hughesadam_87
0
338
Member Avatar for samohtvii

I am looking to create a binary tree and then print it out. I am getting some strange errors I cant fix. #include <stdio.h> #include <string.h> struct animalTree { char data[100]; struct animalTree *left; struct animalTree *right; }; typedef struct animalTree aTree; void fillTree(FILE*, struct animalTree*); int readNext(char*, FILE*, int*); …

Member Avatar for deceptikon
0
275
Member Avatar for Prisms

Hello everyone I'm having a bit of trouble with C. Its been awhile and I was wondering if I'm on the right track I'm trying to read from a file and manipulate the data with a structure I created. The problem is the first two values in the text document …

Member Avatar for WaltP
0
410
Member Avatar for happygeek

One of the Internet's biggest online dating sites, eHarmony, has confirmed that security has been breached and member passwords compromised. eHarmony spokesperson Becky Teraoka says that "a small fraction of our user base has been affected" although I am led to understand that the 'small fraction' in question is actually …

Member Avatar for rubeccamatthews
2
818
Member Avatar for samohtvii

Hi all, Say i have 2 nodes of a tree. struct tree{ int data; tree* left; tree* right; }; NODE1 data = 3; left = NULL; right = NULL and NODE2 data = 6; left = NULL; right = NULL How do i say Node 2 if the left link …

Member Avatar for WaltP
0
173
Member Avatar for samohtvii

Hi all, I am having trouble getting a tree to and from a text file. The text file will hold questions and animals. Each node should hold one question and one animal. So if you can imagine: Does it have 4 legs? / \ Does it purr? Does it swim? …

Member Avatar for samohtvii
0
3K
Member Avatar for vegaseat

Just a few more explorations using a Python class to mimic a C Structure or Pascal Record. Loading the record from a csv type data file, displaying the data and sorting and searching the data in various ways.

Member Avatar for hughesadam_87
3
366
Member Avatar for chandimak

I have a database table like the one mentioned below. id | lecture | subject_id | date | is_deleted ------|--------------------|------------|------------|----------- 1 | Introduction | 1 | 2012-08-10 | 0 2 | Structure | 2 | 2012-08-15 | 1 3 | Introduction | 2 | 2012-08-12 | 0 4 | Functions …

Member Avatar for chandimak
0
131
Member Avatar for heshanm

Hi All, I have a small problem. I want to add time tables for each grade in a school. Therefore in my addTimeTable.php page i have created a form to enter student grade, class and stream. (required only for grade 12 and 13) When a user clicks on "Add" button …

Member Avatar for diafol
0
204
Member Avatar for foxkueh

Greetings. My laptop was working fine with connection to internet through my home modem. However, all of a sudden it refused to detect the modem, although it has no problem detecting other modems in the vicinity. Could it be caused by virus. I have it scanned with reports attached. Pls …

Member Avatar for johhny-marshal
0
277
Member Avatar for mj89

Hi we are developing the KNN data mining classification algorithm and are unable to proceed after a point. We have been able to calculate the Euclidean distance metric and find the three closest neighbours to an instance and ordered them in ascending order. However, with the help of the distance …

Member Avatar for philfv
0
345
Member Avatar for modesto916

Hi, I'm writing a small C program to clean the radius radacct table, removing ended sessions records and inserting on a separated database. The problem is that MySQL C API doesn't have an easy way to insert the result of a query on another database/table directly, you have to build …

Member Avatar for modesto916
0
2K
Member Avatar for trishtren

Hey, iv been looking around for help with a problem with a program i am working on, but i cant find an appropriate category on any forum really. The program is a flash swf compiler. But at the moment i am having problems understand a certain data structure (the abc …

0
404
Member Avatar for vikingsheepman

Hello all! I have used this forum many times in the past to solve a variety of programming related problems, but am truly stumped on a segfault within a binary search tree. I have isolated the segfault to a fscanf statement that look legitamate to me. The following code blocks …

Member Avatar for vikingsheepman
0
267
Member Avatar for gwolf1

Can someone help me complete my code? I am having trouble with it and I need some input. //#include "bigint.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> /* Create and implement a bigint data structure that can represent integers whose size is limited only by the memory capacity of …

Member Avatar for gwolf1
0
349
Member Avatar for dawsonrose

Hello, I've a file which contains names and grades of students, and I'd like to write a program which can sort their grades (like midterm 1,midterm 2) according to user choice. I wrote as far as the choice part and opening the file, yet I don't know how to make …

Member Avatar for WaltP
0
788
Member Avatar for pritaeas

In addition to [my post in this thread](http://www.daniweb.com/web-development/php/threads/429740/php-best-practice#post1841569) I've decided to post an extended example, which also implements functions for inserts and updates. I hope the code is straightforward enough. If not, reply and let me know. The table structure I've used for my test is the following: CREATE TABLE …

Member Avatar for extjac
4
453

The End.