2,965 Topics

Member Avatar for
Member Avatar for csolutions

I have an access database from which i have to retrieve data from access database into c# showing tree view in my application. here is what i want to do. I have this access database with the following tables. [CODE] categoryid | Category Name | Parent Category =============================================== 1000 Food …

Member Avatar for sayantanbagchi
0
676
Member Avatar for triumphost

typedef union { unsigned Color; struct { unsigned char B, G, R, A; }; } RGB, *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((COLORREF)((BYTE)(R)|((BYTE)(G) << 8)|((BYTE)(B) << 16)))}; return Result;} inline RGB Rgb(COLORREF Color) {RGB Result = {Color}; return Result;} The above is my code …

Member Avatar for L7Sqr
0
141
Member Avatar for phorce

Hello, I'm going to be working on Lexical Analysis, but, both in Words / Characters as well as Integer values. The application will also allow input from both Text files, as well as passing the data through arrays, or variables. The Numeric analysis will be different from the Lexical Analysis …

Member Avatar for phorce
0
103
Member Avatar for TarkiB

Hi there, As the title says, I'm having an issue passing an array of structures to a function.The structure reads and tokenises information from a text file. I then need to do things with that data using several different functions. Here's my code: #include <stdio.h> #include <stdlib.h> #include <string.h> typedef …

Member Avatar for TarkiB
0
3K
Member Avatar for NitaB

Well, it's been a lonngg time since I've last been on DaniWeb and everything looks different. Anyway, I'm having a bit of a brain fart I suppose so I'm hoping someone can help me out. I've been working on this program that basically reads in a fasta file with multiple …

Member Avatar for NitaB
0
127
Member Avatar for nan2

have data in this format =[{"Name":"A","children":[{"Name":"C","children":[{"Name":"CC",children":[{"Name":"TC","count":1,"children": want it in readable/xml format to make it easily understand like A:C:CC:TC and then A:B:BB etc to clearly shw the structure basically. how to do??? thanx

0
80
Member Avatar for itisnot_me

first off hi again. Now i dont know where to start this one script or let alone how to execute it. This is what i would like to learn how to do. I would like to output the current DB structure then take that and update another db with the …

Member Avatar for |-|x
0
318
Member Avatar for jimjones371

Need help from daniweb community. I suck at programming. It doesn't make sense to me. I'm not going to be programming in my career but it's part of my major. I'm desperately trying to get an c- just to pass. Would love some help. I would appreciate some explanation but …

Member Avatar for gusano79
0
286
Member Avatar for bizak

Hello! I've been staring at my code for a while and I really have no idea where I'm going wrong. I'm working on deleting a specific node (for example, the integer 317)....but for some reason I just keep getting a nullpointer expression. I get the error when it goes into …

Member Avatar for JamesCherrill
0
304
Member Avatar for ak47carbon

am inserting data into base it is not inserting data which i want to insert the following data into *p1_n_dis* field of table Usman Raza, who completed his MS majoring in Computer Science at LUMS with an National Management Foundation (NMF) Gold medal, has been awarded a prestigious Mark Weiser …

Member Avatar for vibhaJ
0
226
Member Avatar for stevthym

Hi! I am working into the development of a C++ related Phone Management System where the request is to: 1. Input information of new subscriber: The program should input a line of data from the keyboard in the following format: <surname> <name> ! <telephone1> <mode> ! <telephone2> <mode> ! ...! …

Member Avatar for WaltP
0
257
Member Avatar for Vish0203

Hi Everyone!! I'm facing a few problems in storing the structutres or records in a file. I'm trying to store the usernames and passwords(Taken as example), of a person in a single record as structure variable **w[99].** and **i=0 to i<=100 *** When the program Executes for the first time, …

Member Avatar for Vish0203
0
144
Member Avatar for eshray

hello, acually your site is helping me alots , thanx alots I have an assignemt n i stuck on readind data from user and hendle them as single string plzzzzz anyone can help me:( i tried alots and alots Write a C++ program that will make use of the following …

Member Avatar for nullptr
0
115
Member Avatar for asif49

I can't find the answer to this on google because I'm not sure exactly what to search for. I'm building a program where there will hardly ever be new data being added in however the data which is in the system will need to be displayed often. So what I'm …

Member Avatar for mike_2000_17
0
172
Member Avatar for bbaaking

hi, I’ve got a big problem. Could anyone give me a hand? My aim is:Remove the duplicate data, that is, the various entries of EndTime and Qos for a same ServiceID due to the repeated feedback. The rule is to only keep the records with the lowest Qos for a …

Member Avatar for bbaaking
0
225
Member Avatar for while(!success)

Hey guys, I've been messing around trying to learn binary trees and have created a simple program to get the month and number of days in a month to be inserted into the tree then displayed. I am getting a successful build, however, when it launches the terminal window the …

Member Avatar for while(!success)
0
145
Member Avatar for nova37

i have little problem with one algo . first i have two tables there are above one lac records in each table . table 1X structure id domain 1 google.com 2 daniweb.com 3 yahoo.com table 2X structure id domain 1 google.com 2 facebook.com 3 youtube.com now my task is to …

Member Avatar for smantscheff
0
214
Member Avatar for andisss

Hello! I need to ask for a little help to build SQL query to delete some records! Table structure: `charId` int(10) DEFAULT NULL, `schameid` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(250) DEFAULT '', `skills` varchar(500) DEFAULT '', PRIMARY KEY (`schameid`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; Some times record `skills` is empty …

Member Avatar for seslie
0
159
Member Avatar for Ancient Dragon

I see a lot of posts where some of the code is in code tags and some not? What's with that? Example here: http://www.daniweb.com/software-development/cpp/threads/420885/data-structure-stack

Member Avatar for Dani
0
259
Member Avatar for noorah

Write a C++ program that asks the user to enter an integer n followed by n numbers. The program will use 2 stacks to enter the numbers entered by the user. In every iteration the program will balance the total of the numbers stored in every stack. For example, if …

Member Avatar for Lerner
0
232
Member Avatar for studentabc

I am not able to post the new article on the website thats why i am directly contacting you if you can able to help me out with the following problems. I am student. I have a very simple assignment and I did do the assignment but the requirement is …

Member Avatar for broj1
0
2K
Member Avatar for samytaqq

Let us suppose that we have 3 books (see table below), each of which contains a number of chapters and every chapter contains a number of sections. For example the book Data Structure contains 3 chapters (Queues and Stacks, Linked‐Lists, Sorting) and the chapter Queues and Stacks contains 2 sections …

Member Avatar for thines01
0
196
Member Avatar for Mushy-pea

Hi. I'm working on some Haskell code that takes some string input and processes it to return a list of integers, the reason for which should become clear when the app. eventually get finished. The list processing functions do what I want when I call "parse_data (contents)" in GHCi, but …

0
99
Member Avatar for DaAznSmurf

So my assignment is to design a simple GUI calculator using the stack data structure to perform additions, subtractions, multiplications and divisions. The calculator window should have at least two panels - one for display and the other for buttons (0 - 9, . , +, -, X, /, =, …

Member Avatar for NormR1
0
1K
Member Avatar for Anonymous123

I have an assignment to write a program in Java to implement the Natural Correspondence Algorithm for converting a linear list into a binary tree. The program should process its inputs in two steps: (a) It first builds a tree for a given input list (b) It then traverses the …

Member Avatar for Anonymous123
0
280
Member Avatar for Dmiller071

Hi all, I need to utilize a Graph Data structure for an assignment. I've understood the following code (posted below) until I came to the search function. The depthFirstSearch and breadthFirstSearch both require a Visitor<T> which is an interface. I'm not much used to interfaces, so I'm not sure where …

Member Avatar for Dmiller071
0
158
Member Avatar for nuclear

So i was simply following one of the opengl tutorials - http://nehe.gamedev.net/tutorial/loading_and_moving_through_a_3d_world/22003/ So everything works completely fine except one thing, when i load in textures with SOIL lib its not completely correct, but with GLAUX lib it works just fine but i dont prefer using GLAUX. Here is what i …

0
148
Member Avatar for Ricky65

Hi I'm looking to upload files using http post using winsock and have a php script handle it. I've got it working fine for text files but with files that contain null characters such as exes it doesn't work. It is only copying the file buffer up to the null …

Member Avatar for bakri
0
1K
Member Avatar for xtinab

Hello all, I'm having trouble writing a recursive algorithm to traverse a Huffman tree to encode a message. I'm sure you all know what they are. Here's my algorithm: string HuffmanCode(const char& symbol, const TreeNode<SymbolPriority>* huffman, string &code) { //Base case: you are in a leaf; if the leaf contains …

Member Avatar for histrungalot
0
1K
Member Avatar for Enjaz

Assalam Alaikum Could any one help pleeeeeeas This is a JAVA code written using Array data structure ! I have to convert it using a binary tree data structure ! I really face difficulty in doing that !!! I mean, I don't know where to start in the process :""(( …

Member Avatar for Enjaz
0
164
Member Avatar for osiron

Hi everyone, I'm working on an assignment that takes a record of student ID, student last and first name and their score, using array of pointers, qsort to sort in alphabetical order, typedef structs, malloc and calloc, etc. and the program prompts those records and it is stored in dynamic …

Member Avatar for osiron
0
188
Member Avatar for TheWind147

Hi! I made a program that accepts random numbers, create a binary tree from it, then traverse it using in-order, pre-order and post-order traversal. The program is working well but my instructor added something else, when the user input numbers, it should be arranged just like an actual tree. The …

Member Avatar for TheWind147
0
4K
Member Avatar for jone kim

I want to design: 1. address class ->using dictionary data structure where items are; state, city and street for individual person 2. name class -> person's first and last name 3. display class -> searches for the given name and displays the address of that particular name my questions are: …

Member Avatar for woooee
0
156
Member Avatar for Kathkat

Hi there, I am hoping that somebody here might be able to help me. My kids managed to get some virus on my computer while I wasn't at home. I twigged when I got a popup box at my online banking sites.. eek! I ran AVG and it found a …

Member Avatar for Shinedevil
0
193
Member Avatar for TheFearful

Hey guys, I don't know where to get started in this. I pretty much only have the header file and I don't even know if that is correct. I don't know what the question is asking other than it is asking me to open up a text file. Any suggestions? …

Member Avatar for rubberman
0
173
Member Avatar for Dmiller071

Hi all, I need to write an algorithm that can find intersections, dead-ends, and turns within a maze. Below is the code I currently have. You're welcome to read through it, though I'm not sure if it will help in any way. The basic information: - Maze image file is …

Member Avatar for Dmiller071
0
174
Member Avatar for Dmiller071

Hi all, I have a project where I need to read in an image of a maze and use a graph data structure to find certain points in the maze to place nodes and trace edges. I plan to have the maze be in only two different colors. The walls/background …

Member Avatar for Dmiller071
0
278
Member Avatar for Saviour4You

Hello, I am a java learner and have just started learing java by follwing the online tutorials. I am a computer science student and as a part of our assisgnment, I have to design a online CHat system in java. TBH, I have no clue of what to learn and …

Member Avatar for NetJunkie
0
290
Member Avatar for Nathaniel10

I am teaching myself C++ and wrote a program that does the queue data structure. It runs corectly. I would like some feedback on how I can improve the program to make it run faster, use fewer lines of code, or be clearer to someone else. I haven't added my …

Member Avatar for Nathaniel10
0
87
Member Avatar for heshanm

Hi all, I have small problem regarding my student registration form. When i enter data and submit always below message is displayed irrespective of whether the admission_id is exist or not. "Admission numberThis student has been already entered to the system" **newStudentRegistrationForm.php** <form name="form1" method="post" action="newStudentRegistrationFormvalidation.php"> <?PHP $con=mysql_connect("localhost","root",""); mysql_select_db("student_management",$con); ?> …

Member Avatar for IIM
0
254
Member Avatar for occirats

i got a virus/malware called "windows secure kit 2012"....ran a quick scan with Microsoft security essentials (MSE) and nothing, the next day i ran a full scan and it said it removed a few things i can list if needed.. however the pop up reoccured and i ran the full …

Member Avatar for FullDuplex
0
149
Member Avatar for anita.kcx

Hi, I have a database called my_db1 which contains 3 tables. Out of the 3 tables one table is being populated 24*7. My hosting provider (i.e godaddy) provides 25 Mysql databases 1 GB each. What should I do if the database exceeds the 1 GB size limit? Is there a …

Member Avatar for effectiveMySQL
0
2K
Member Avatar for Nathaniel10

I am teaching myself C++ and amd now trying to simple programs related to data structures. I wrote this code for a simple stack. It is not working. I am frustrated and tired so I cannot think through the issue. There are two main problems with which I need help. …

Member Avatar for Nathaniel10
0
122
Member Avatar for modesto916

Good day, My Data Structure teacher asked me to do a list of exercises, and one of the questions consists of writing a program to solve the numbers decomposition problem, for example: If the user types the number 5: 5 4 + 1 3 + 2 3 + 1 + …

Member Avatar for MonsieurPointer
0
67
Member Avatar for meksikatsi

Hello, I got a bug from going on the keltec site - there's discussion but no solution that I've been able to find. I tried to post here before but I could not post or PM for some reason. Now posting is working so.... I've been working on this issue …

0
142
Member Avatar for vijiraghs

The following is my RDF file structure. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <rdf:Description rdf:about="http://www.wordpress.com/blogs/ckj"> <rdf:subject>Data structures</rdf:subject> <rdf:object>vijayalakshmi</rdf:object> <rdf:value>kjhjk</rdf:value> </rdf:Description> </rdf:RDF> I want to write a piece of java code that can * read the value of <rdf:subject> <rdf:object> into a model inside a java program. How should I do this?? I am …

Member Avatar for NormR1
0
172
Member Avatar for abshake4u

Hello Helpers! My Compaq M2000 laptop has been a victim of a very silly mistake done by me. I've followed the steps given in the below link: http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/134865/read-me-before-posting-a-request-for-assistance following are the logs for your persual: **GMER One.log:** GMER 1.0.15.15641 - http://www.gmer.net Rootkit quick scan 2012-03-20 22:48:27 Windows 5.1.2600 Service Pack …

Member Avatar for gALENA
0
309
Member Avatar for cheiL

I'm working on a *soap message *to send to a client system. I must use the client's predefined data types specified on their soap to send my message. Theres alot of arrays and enumerators used and my code gives the following error: > Error 1 Cannot implicitly convert type 'UpdateRatePs._Default.Rate.AvailAppType' …

Member Avatar for cheiL
0
265
Member Avatar for fistfullofbeer

I am working on a personal project and am trying to figure out if Python 3 or PHP would work better. I prefer Python because I am trying to hone my skills at it and at the same time I really do like its syntax and ease to learn. I …

Member Avatar for TrustyTony
0
167
Member Avatar for spixy

this is a little bit confusing, but can I know what does each part of this codes means.. especially those ptr, something. i understand those mov.. but the others aren't. i have googled a lot, but still can't understand.. what i know: the basic structure of tasm(.stack, .data, .code, and …

Member Avatar for spixy
0
938

The End.