2,055 Topics
![]() | |
hi, i have the following structure in the "simple application": application_folder | |--makefile | +-headers | | | +----func.h | | +src | | | +------ func.c | +------ main.c | | and here are the contents of the files: *func.h [code=c] float hey(float a, float b); [/code] *func.c [code=c] … | |
Hi' everyone .I'm paresh. I'm a B.Tech(Comp.Sc), 2008 pass out from a private engg. college from bhubaneswar,orissa,india. I want to be an expert in [B][I]data structure& algorithm design for real life problems[/I][/B]. I have already got an job offer from a software company named [B][I]MASTEK[/I][/B]. But [B][I]GOOGLE [/I][/B]is my dream … | |
Hi all my friends :) I hope you're alright.. :) first of all, I'm doing my assignment *don't worry I'll not ask to solve it :D* I just got an error, don't know what's the solution for it this is the error I'm getting: [QUOTE]C:\Documents and Settings\BoJaSoOM\Desktop\Data Structure\5\HashTable.cpp(200) : error … | |
Hey guys I have a table, that lists people, with a correpsonding date and time for each activity. My structure is like: PersonID......Date............Time 872367.........01/01/08......15:00:00 872367.........01/01/08......16:00:00 872367.........01/01/08......18:00:00 976737.........01/01/08......19:00:00 976737.........02/01/08......16:00:00 911967.........03/01/08......18:00:00 I want to have a query that returns each persons latest activity date and time, so I want a table like: … | |
I have a function which takes an array of SDL_Rect (which is a data structure containing four integers, x, y, h and w), and assigns values to the data members. However, when I try to compile, each line generates the error "error C2059: syntax error : '='". [CODE] int main() … | |
I have to design and implement a new linked class called StudentList, to represent and manipulate the records of students enrolled in a course. The data field for each record in StudentList must contain: student name (string type) studentId (int) (from 0 to 10000) dept (string) major (string) In the … | |
My boss has recommended a hash table, but I'd like some second opinions as to what you think the best way to accomplish this task is. My problem is that I don't know C++, so I've been learning things as I needed them to finish this project. I'm kind of … | |
Ok I'm doing some exam prep. I'm checking out an old exam paper and come accross this question Which of the following is not a tool for designing modular systems a) Structure charts b) Data dictionaries c) Class diagrams d) Collaboration diagrams I know that modular systems include collaboration diagrams … | |
Topic: ReadFile prob in Release mode Posted: Today at 11:21pm Hi, I have written an application in MFC, to interface with a USB device to get Data. I have used a worker thread which pools for data. I have used the CreateFile function with FILE_FLAG_OVERLAPPED Flag. In ReadFile fn I … | |
Hi, I'm taking a shot at the netflix challenge and relearning C++ at the same time (I usually code in Python now). I'm storing the data in the following structure: typedef struct ndata{ unsigned int userid : 22; unsigned int rating : 3; unsigned int : 0; unsigned int movieid … | |
Hi' everyone .I'm a B.Tech(Comp.Sc), 2008 pass out from a private engg. college from bhubaneswar,orissa,india. I want to be an expert in data structure& algorithm design real life problems. I have already got an job offer from a software company named MASTEK. But GOOGLE is my dream company. i need … | |
Hello everybody! As I thought I became more comfortable with data structure I've got the problem I can't solve. It looks so: I have that kind of text file: ABCD vvvv 1e-12 ABCD hhhh 1e-6 ABCD ggggg 1e-3 ASDE ffffff 1e-57 ASDE dddd 0.001 etc. I would like to read … | |
I have this task and i dont know how to do it, any help will be appreciated I want to do it in C language under linux Evaluate Boolean expression given by the user by using tree data structure. An example of the Boolean expression is ((X1 * X2 * … | |
hai all Good Morning. I am trying to show a OLAP Report created (using cube in SqlServer 2000) in crystal reports in a asp page. i used smart activex viewer for this but the data alone in the crystal reports r shown. the drill down structure does not appears. Also … | |
Hi I am new to Python, I would like to inquire why the script below can't use fileHandle.readline() I am trying to store the data in an input file into a structure, but I am not sure why line = file.readline() fails ? The structure contains mode. Each mode contains … | |
Im trying to make a sort of menu and im not sure how to do it. I want it too build the structure from a file and/or input and im not sure what kind of data structure i should save it it. I´ve been thinking about a linked list with … | |
Hey guys i need some help. I have a txt file which looks like this: 234 56 123 34 456 56 7 45..... 123 3 34 56 56 67 67 2..... . . . Where each line represents a series of points in coordinate system, and the first number in … | |
Hi all, I am having trouble understanding BST recursive algorithm. Here is the code: [CODE] int maxDepth(struct node* node) { if (node==NULL) { return(0); } else { // compute the depth of each subtree int lDepth = maxDepth(node->left); int rDepth = maxDepth(node->right); // use the larger one if (lDepth > … | |
Hi there, I was wondering if any of you guys know a good tutorial/book/essay/white paper on creating a generic protocol parser? What I am needing is a generic protocol parser that can read in human editable configuration files at run time and be able to configure itself to read the … | |
Hi , i am trying to retrieve a row of data from a SQL table,but i dont get the results,i just get the variable($stock_code) that i use to search for the row on the screen. <?php include "dbaccess.php"; $stock_code=$_POST["txtStock"]; // Insert the required SQL query here. $query = "SELECT STOCK_CODE … | |
First time posting, this seems like a wonderful community. Okay, so I'm new to C++ (mostly worked with java) and I'm trying to write a program that will read in a plain text file (a short paragraph) and take and place each word in the text file and place it … | |
hello, I need to retreive data from excel files into data structure in c++ using vs2005. can someone please help me at least to define the connection string? thank's in advance Lior | |
Hi, I am bound to use VCF15.ocx and need to set printer programmatically. According to the help file it can be done via PrintDevMode property, but there isn't any *working* example available. Any ideas? Thanks! PrintDevMode Property Member of: F1Book, F1BookView Remarks The DEVMODE data structure contains information about the … | |
I have a quick question that is been bugging me. [CODE]void swap(void *a, void *b) { void *tmp; tmp = a; a = b; b = tmp; }[/CODE] I wrote this intending it to be either able to swap a structure, or just the data defined within a structure. Will … | |
Hi All, Quick question... I have a structure for a specific type of vector: struct SParticle { float Position; float Velocity; float FcnVal; float LocalBest; float LocalBestVal; } But now I need to define 30 objects for this structure. Is there an easy way for doing this or should I … | |
I am able to connect to the database and located the table. I am unable to populate the db. Attached is a in image of the phpmyadmin trucks table structure. Please help. I am excited to be so close to getting it right. [CODE] echo '<blockquote><blockquote><blockquote>'; echo '<form method="post" action="/inventory/">'; … | |
I am creating a book database using C++. I am using a book structure which contains all the information for each book that I create. The problem I am having is that I want to be able to search the file I am printing the books to for a specific … | |
I haven't been on the forums for over like 20 days because I have been busy with things, and then my internet died. Not that anyone cared, but I'm just saying this so Vmane won't think that I just copied his code solution and ran away if he stumbled upon … | |
In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one … | |
Detail About Recursion and its Type Here I am going to give a detail about Recursion in C++. Definition: Recursion is the process where a function is called itself but stack frame will be out of limit because function call will be infinite times. So a termination condition is mandatory … | |
Hello all! I am trying to create a form like structure using Swing to enter data into MySQL database. I have a combo box that has a list of items to be chosen. If the user does not find the option that he needs, he can choose 'Other' as an … | |
okay i'm working on a very complicated problem (for me anyway) and i know i'm missing something somewhere. i need to be able to store data into an array but i don't want it looping right off. this is the structure for the data i need and my function headers. … | |
BACKGROUND Your company is writing software for a new networking device and you have the task of managing the DNS storage and retrieval. DNS must translate between an Internet IP address such as 74.125.19.99 and the URI (in this case [url]www.google.com)[/url]. The networking device is not available so the code … | |
The problem is that i need to save in simple way the array of structure: [ICODE]struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] This is the struct & array. Code: [ICODE]gydytojas pgyd; pgyd.vardas[25]=Edit21->Text; pgyd.pavarde[35]=Edit22->Text; pgyd.adresas[50]=Edit24->Text; pgyd.asmkod=StrToInt(Edit23->Text); pgyd.amzius=StrToInt(Edit27->Text); pgyd.gydid=StrToInt(Edit26->Text); pgyd.telefonas=StrToInt(Edit25->Text); pgyd.specialyb=ComboBox5->ItemIndex; … | |
i have to write an image processing program that can invert, blur, sharpen, threshold, and then resave an image. here is what i have so far: [code=c] //---------------------------------------------------------------------- // SECTION 1: Preprocessor Commands //---------------------------------------------------------------------- // Include Win32 API Libraries (headers) #include <windows.h> #include <windowsx.h> #include <commctrl.h> #include <string.h> #include <stdio.h> … | |
Hi everybody, I'm working on project to my tutorial, it's called Library and basically it's reading data from text file and inserting it in structure. Output part is String Grid. It should be able to sort books alphabetically, add and delete books manualy etc. I'm using Borland C++ Turbo. Here … | |
Below is code that I'm using that essentially creates fake *.avi files and puts them in a directory structure so that they can be later added into a database. The whole purpose of this is to be able to index the files without the risk of screwing up the originals. … | |
Hi all, I m doing one c program for serial communication.In that i want to send request to one hardware module, after receiving my request that h/w send me one frame with predefined format. CPP / C++ / C Code: [code] /* Program SERIALCOMMUNICATION.C is used for PC to PC … | |
Hi guys, I'm both new here, and new to c++ so be gentle! Over the past short time we've been looking at c++ on our course, but I don't believe it has been taught too well, and I'm struggling to understand what should really be basic concepts? An assignment we've … | |
Hey. I want to make a packet structure, something like [code=c++]struct Packet { int cmd; /* command */ int len; /* length of body */ char body[30]; /* body (should be length of len though, might use std::string) */ };[/code] Now, if I recieve some data thru a socket (I'm … | |
I'm trying to write a data structure for a basic 3D engine, but for some reason it always crashes when I try to add an index to the polygon vector. Anyone know what may be going on? Thanks [code] #include <iostream> #include <string> #include <iterator> #include <vector> #include <gl/glut.h> #include … | |
How to declare the array and read the array? Must I use data structure? [U]Two array[/U] 1 30 2 20 3 10 4 50 5 15 | |
I'm using delphi 7, if anyone could let me know how to compile this code i would be grateful. thanks. [CODE]unit UIRT; interface uses SysUtils, Classes, Windows, SyncObjs, Dialogs; // USB-UIRT DLL API Constants... const CRLF: string = '\r\n'; INVALID_HANDLE_VALUE: integer = -1; ERROR_IO_PENDING: integer = 997; UUIRTDRV_ERR_NO_DEVICE: integer = … | |
Hi all, Here is the structure of my XML file. [CODE]<?xml version="1.0"?> <data> <key>468</key> <name>pal</name> <option>10</option> </data>[/CODE] I want to read the option tag value, then increment it by 4 and write it to the same location. So at the end XML file content like this. [CODE]<?xml version="1.0"?> <data> <key>468</key> … | |
I am using java.util.map to store some data ( one key and two values , per row ) in java and return it to a python function . What kind of a data structre should I use in python to catch it? (btw I am using Jython as a bridge … | |
Hey, everyone, I am another student seeking help for a programming class. What I am having trouble with specifically is reading from a file. The program itself involves entering in some store products with information such as: product name, product ID, etc. After everything is entered, the program is supposed … | |
Hello guys, I need some assistance in data recovery. My hard drives "quit" on me...okay maybe it's partly my fault... So one day I noticed my computer's Internet was connecting/disconnecting by itself a lot while I was using my XP. I have a dual boot with XP and 2k. I … | |
Hi, Not sure if this is the best place to post this but here is the situation: I have 3 instances of tomcat running on each of ports 3030, 3031 and 3032. These all work fine. I'm using IIS as web listener and have installed the ISAPI connector. This works … | |
> Write a program that defines a class to keep track of student grades.The information the student class includes are the student’s first name, last name, a six-digit ID number, and a struct marks the struct marks contains five programming assignment scores, a midterm score, a final exam score, and … | |
hello all im having trouble with entering data in arrays that are in a structure i was given a task to write the code for the following: 1) define structure tstudent that has the following info about students ---index number (int) ---name (char) ---age (int) 2) define structure tgrades that … |
The End.