2,965 Topics
![]() | |
Hi everyone I need major help i took a class in c++ and was doing fine until the last challenge, I need help with it in every way, below is what is wanted but I cant understand anything please help me This program will include error trapping with try and … | |
I need to download data automatically from a remote server. Its a CSV file, and i need to unzip it, and store the data in a mysql database that i created. There are multiple databases. The first section below is one of the databases that someone helped me with and … | |
i need a complete working program in TRIE data structure. the program should insert words into trie and also search it when asked. please help me out. at least post the links where i can find them. thank you. | |
Do I need a copy constructor? [CODE] #ifndef MY_MIN_PQ_H #define MY_MIN_PQ_H #include <iostream> #include <vector> using namespace std; class my_min_pq { public: //default constructor my_min_pq(); //destructor ~my_min_pq(); //insert element at end of sequence, and rearrange so minimum data at the front of array void enqueue(int data ,int priority); //removes data … | |
Hi I want to print in the screen only [B]the fields [/B]of some of the data that is in the structure, Doom3 like: the name for example, or the field time in FIFA, or the field memory in word How can i do this ? [CODE] #include <conio.h> #include <stdio.h> … | |
hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data … | |
Internet explorer has started opening by itself every few minutes and my computer is running slower than usual with a virtual memory is running low message popping up. I do not know what website it is trying to access because i have gone over my internet quota and it doesnt … | |
I have to use a very simple data structure consisting only two double type data members (like complex numbers). I have written a class because it is practical to handle that object, and it is also usefull for me to overload all overloadable operators and define constructors and friend functions … | |
Hi! Ugh, my computer's normally good, but for some reason it's spyware-riddled lately. I've been trying to fix this, but I think I need to call for support. It WAS more serious, where it was preventing stuff from opening and changed my wallpaper and stuff, but I seem to have … | |
Here is the LinkedList.h file: [CODE]// LinkedList.h -- class for a linked list as a data structure template <class DataType> struct Node { DataType info; Node<DataType> *next; }; // LinkedList maintains a current position in list after each function call // If an object of a struct is used for … | |
Hi, The following code I've been working on (as hobbyist) compiles okay, buy at runtime it fails to output the dates that it is supposed to extract from a csv file. I've been staring at this forever and no progress. I am thinking that the problem occurs before the date … | |
So here is the problem. I have a file that starts with a number, this number says how many entries are in the file (5 means there are 5 names). Each entry takes up two lines in the txt file. First line is the name, the second is a group … | |
I have a dictionary that I would like to load from a file into a class variable. The dictionary holds configuration data. I would have different files for different configurations. I was wondering if there is a way to do this? I found pickle but that saves an existing instance … | |
Hello guys! I have an assignment in my data structure class and I want to ask following thing: I have txt file which is unordered (not sorted) say like this: red apple blue sky white car handsome boy hello world My program should read file into linked list and sort … | |
Hello. I have text fields with data that is not being inserted into my table 'Election'. The Election table has these fields: ID (primary key and auto-increment), title, open_datetime, close_datetime, department, adminID, active (default is 'N') I checked to make sure all the field names are the same. Everything works … | |
I've got a database which is getting quite large and slow to query. I only really need the last month of entries for most situations so I'm looking to create structure-copies of two of my tables and then regularly move data from the 'live' two into the 'archive' two if … | |
Hey can anyone tell me whats wrong with my code? I'm getting a program freeze. [url]http://i47.tinypic.com/wh1ez5.png[/url] I'm doing a binary search tree, BST.CPP [url]http://pastebin.org/57667[/url] Person.CPP [url]http://pastebin.org/57669[/url] TreeNode.CPP [url]http://pastebin.org/57670[/url] Main---Where I call the searchTreeInsert function [url]http://pastebin.org/57674[/url] | |
Hello all, I'm working on a school project (in C) that I'm having some issues with. I have a number of threads which recursively send information between one another via sockets. The structure for the recursive case is as follows.. Loop For A Long Time { Receive From Predecessor Respond … | |
Fellow Java Coders, I recently got a project to do for my coursework in university which requires that me and my group members simulate a file manager similar to windows explorer but I guess not as complex. Here is a synopsis of what is required: The members of this group … | |
Hello Experts! I think I'm finally going to need to reach out for some urgent help... I've been working on removing this malware/virus for a few days and thought I got it. Now I'm seeing my explorer.exe process crash quite frequently. I'm thinking there are still some lingering problems. Any … | |
I'm still doing some cpuid code; but now I want to get the brand string. I've sort of got about half of it... If you have a browser that supports it; search for "/* relevant */" to seek straight to the relevant part of the code Important edit: if I … | |
I am designing a database system to store salary information. It includes different tables (salary,personal info , ect) I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). (i.e. i dnt want all the employee names of every … | |
Hi Im new to OO PHP, been reading through my book and in one example they are using a class structure in a shopping cart. I have used session variables in the past for shopping carts, can I assume that if I create a class, which has a cart_contents array … | |
I need a help with php i have a query it generate result that list of cars and i want is divide in to pages here im giving the table structure and the php file can help me on this [B]Table Structute[/B] [CODE] CREATE TABLE IF NOT EXISTS `cars` ( … | |
Give me convience or give me death! The would-be programmer is introduced in some way to what could be compared to a CS101 course. He is taught about algorithms, variables, procedures, recursive functions, data structures and arrays. One of the fundamental steps for any program development is ease of program … | |
Hello every1 I was making this program of a phone directory to store contacts and all their information in C. I made use of structure and then copied the data of the structure to a file. the structure is [code] struct phdata { char name[20],add[20]; int phno; }ph[20]; [/code] the … | |
Hello, If I want to say compare a line at a given line number to another line at a different given line number how can I do this? I know I could iterate through the file and store the lines into a data structure and perform comparisons that way but … | |
Hi, I'm using a dataTable to bind my gridView and during the data binding I need to make some cells bold. The structure I'm looking for is this: [B]Person[/B] [INDENT]contact[/INDENT] [B]Person 2[/B] [INDENT]contact[/INDENT] To include the spaces when binding the table I'm using Server.HtmlDecode(" "). I tried Server.HtmlDecode("<b>") ... Server.HtmlDecode("</b>") to … | |
Hi all, I'm attempting to write an XPath expression that can follow references recursively. I'm doing this for a Schematron rule, so it's not in an XSLT template that I can modify. The setup: [code] <strawberry id="strawberry-1"> <extends ref_id="berry-1"/> </strawberry> <berry id="berry-1"> <extends ref_id="fruit-1"/> <extends ref_id="plant-1"/> </berry> <fruit ref_id="fruit-1"/> <extends … | |
I was told once that If I wanted to know what functions were available in a given header that I needed to open a header file and look. code /* * stdio.h * This file has no copyright assigned and is placed in the Public Domain. * This file is … | |
Can anyone tell me why line 140-144 of this program does not do what it is supposed to do. Here is the output and you can see it is all blank? What am I missing? hit any letter keys to add items to the order and then = to stop … | |
I get the following error when I try to compile this code. Can anyone help me make sense of this error? I have tried defining keystroke as a string and a char, I get the error either way. 1>------ Build started: Project: Register, Configuration: Debug Win32 ------ 1>Compiling... 1>Register.cpp 1>i:\c++\register\register\register.cpp(121) … | |
I have to write a program for class that will read a datafile into a structure. The data file is a menu of food items at a fast food restaurant. Basically simulate a cash register I created a structure menu[26] which includes the following elements key - a,b,c,d etc. item … | |
I recently wrote a thread about help with classes. I got a lot of good responses but I am still struggling with more complicated stuff. I have an old project that I wrote a few weeks into learning python. I am now suppose to turn this project into a class. … | |
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 … | |
I would like to get everyones opinions on what processes should be used to validating and protecting the input into your storage medium aka MySQL. In particular listing possible php functions that hsould be run and maybe once we have a list we put them in order, from most to … | |
A company has several employees and projects. Each employee may be working on several projects. Design a database to hold information about projects and employees, choosing some sensible sample fields and data. Write an SQL query to display the number of women and the number of men working on each … | |
Hi all, I am trying to write code to loop through the windows registry till i find the leaf , meaning the key value pair exists . Each time i get the key , i want to know whether it is parent of some key-value pair. If yes , loop … | |
[CODE]#include <iostream> #include <string> using namespace std; struct Employee { //Data string name; int id; string residance; int salary; }; class Node { public: // Data Employee data; // The Next Pointer Node * next; // Constructor Node(Employee Object ,Node * ptr = NULL ); }; class List { int … | |
I am trying to run this program but it is giving "unable to open socket" eror. i am running this program on a server via putty which is hosted in my univerity server with wireless network. the code is : [code=c]#include <pthread.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <stdlib.h> #include <sys/socket.h> … | |
Hi guys, I've searched this, but can't find a solution. Basically what I'm doing is writing a binary search tree (which works) and balancing it with AVL (which almost works). As far as I can tell my AVL tree is implemented correctly, but I'm getting a stack overflow error at … | |
Just so you know, I'm a PHP beginner, so I won't understand complicated stuff or anything of the like. xP I've started to make a part of my website (may I link to it, or should I just post the code) and I'm pretty happy with it. A user can … | |
requirement CSCI690 - Multicast Socket Programming Project [Objective] Develop a multicast client program to work in conjunction with a multicast test stream. [Requirements] The multicast client must be able to join any group/port, that is specified via the command line. E.g., mclisten <multicast group> <port> where multicast group is a … | |
Hi everyone, im having some problems with my computer, my friend has made this website in flash([URL="http://h1.ripway.com/dan08/Team_Vaska.html"]http://h1.ripway.com/dan08/Team_Vaska.html[/URL]), he embeded, his flash window into html, but the problem doesnt come from there. Me and my friend have a program written in python, and there is nothing that can damage a computer. … | |
Hello, I'm a C newbie (first time using C at university) and after reading a few books, I still have problem implementing & understanding structures and pointers. I have the following structure: [CODE]typedef struct data { double average; }Tdata; Tdata stat = {0};[/CODE] Now I have two functions which are … | |
[URL="http://www.media.mit.edu/people/bio_lip.html"]Andrew Lippman[/URL], who is the Founding Associate Director at the [URL="http://www.media.mit.edu/?page_id=13"]MIT Media Lab[/URL] suggested at a talk last week that we were on the edge of a new third cloud where assistance becomes as important as access. The first cloud was the internet itself. The second cloud provided the services … | |
hi,i am making trees and i want to draw the structure of the tree in windows forms applications.since the class tree has the access to the trees root pointer.so only a member function of the class can draw the nodes of that tree. but i cannot use the graphics pointer … | |
![]() | Hey everyone. I first post and I couldn't figure out how to encase my code, sorry. Let me know and I'll do it next post. Anyways, I've built binary tree using recursion and included a function to print out the sum of the level of the tree of a given … |
[CODE]/* * CensusCalculator.java * * Computer Science 111, Boston University * * This program performs various computations on census data stored in a text file. * It uses arrays in several ways, including for storage of the results of * the computations. * * modified by: [Daniel Sutton (dan13@bu.edu)] * … | |
1. Write a C program to convert a given infix expression to postfix form using stacks 2. Write a C program to evaluate the postfix expression using stacks |
The End.