2,055 Topics

Member Avatar for
Member Avatar for star22

plz friend solve this code for me I dont know what is the wrong with it. it is in c++ programing language. #include <stdio.h> #include <string.h> #define size 20 struct data { int age; int year; char course[6]; char name[20]; } students[20]; struct temporary //changed to struct? { int age; …

Member Avatar for andor
0
1K
Member Avatar for Eddy Dean

Hello everyone, I am trying to create a "proxy" for a program. I will try to explain how I am going to do that. The program I want to write a proxy for sends and receives data to/from a server. The IP and port the client connects to is somewhere …

Member Avatar for Eddy Dean
0
1K
Member Avatar for degamer106

One of the things I can't get working is reading and writing a structure to and from a file in binary. I'm sure that I'm using fread and fwrite correctly. However, I keep getting crashes which I cannot find ways to debug. [CODE]#include <stdio.h> #define MAX 1 typedef struct { …

Member Avatar for degamer106
0
262
Member Avatar for degamer106

Hi. I can't a small part of this program to work correctly; the square root function either returns a bunch of funny symbols OR it returns 0.00 On a side note, I have 2 questions: 1) If you have a structure nesting two other data structure types (like in my …

Member Avatar for degamer106
0
166
Member Avatar for hbmarar

Hi, Need in brief: [COLOR="Blue"]Have 3 tables. I need to extract data from two tables and fill the third table.[/COLOR] Table structure: COM PROFILER: CREATE TABLE comprofiler ( [COLOR="Green"] id int(11) NOT NULL default '0', user_id int(11) NOT NULL default '0', firstname varchar(100) collate latin1_general_ci default NULL, middlename varchar(100) collate …

Member Avatar for pty
0
123
Member Avatar for Miles Archer

I have never compiled before, and I will leave it to you gurus. But I want to drive this (single) program around the block, so any assistance would be appreciated. I have: WindowsXP Pro Borland Compiler 5.5 (free version) MS Visual C++ 2005 Express and the Platform SDK I am …

Member Avatar for Salem
1
344
Member Avatar for knorden

Hi all. I am new to C, at least to the concept of pointers. I am trying to write a process scheduling simulator for my operating systems class (at the last minute of course). Anyway, I wrote a program just using arrays and got it to compile but then of …

Member Avatar for knorden
0
111
Member Avatar for rollbamaroll316

i was just wondering if i could get a little help on this program that i need to do. I am having a lot of trouble just starting it. this is a program dealing with european football AKA soccer. - The program must set up an array of 12structures. - …

Member Avatar for Salem
0
111
Member Avatar for pakko

Hello, I backup my databases like this: [I][B]dump database MYDATABASE to disk='c:\temp\MYDATABASE.bak' with init[/B][/I] [B][/B] This saves the structure and data to the bak-file. Now, for some DB's I want to save the structure only, can someone tell me how to do this? THX pakko

0
60
Member Avatar for codergem

Helo !!! I was trying to implement linked list in which the data field is Generic... the structure details are.. [code]typedef struct node { void *data; struct node *next; }gnode; [/code] Now to add a node into it, and i have written this function. [code]void insert(gnode **head,void *data,unsigned int size) …

Member Avatar for codergem
0
146
Member Avatar for arrogant

can u ppl help me in implementing trie........... i need complete data structure of trie...............and how to implement it????

Member Avatar for iamthwee
0
265
Member Avatar for GM2001

I need some help with a program concerning files. a)I have to create a file with the following information: 1. Honda 4000 2.Toyota 3000 3.Mercedes 8000 4. Toyota 3500 5. Honda 2900 create the necessary data structure to represent the above data in a program. create the necessary variables and …

Member Avatar for Dave Sinkula
0
93
Member Avatar for remedius

Hello! I just want to understand DDK unidrv example. As far as I've read unidrv can include two plug-ins. So,I try OEMDEV structure to send some data from one to another. But when I add some more fields in OEMDEV stucture (I mean besides OEM_DMEXTRAHEADER and dwDriverData, which are happened …

0
114
Member Avatar for matt87

Hi. I am stuck when it comes to plan my application. The purpose is to importdata from a database and export it to a cvs file. During the transfer should some data be validated (email adress). How shuld one build such a thing in good OO-structure. I have writen a …

Member Avatar for alc6379
0
118
Member Avatar for janito2008

May 2, 2006 Hi! I am trying to write a program that uses a structure to store the following weather data for a particular month: Total Rainfall High Temperature Low Temperature Average Temperature The program should have an array of 12 structures to hold weather data for an entire year. …

Member Avatar for Bench
0
509
Member Avatar for musicmancanora4

Hey guys im reading in a text file with several fields iv tokenized the '|' so that it only reads the fields categoryId, drinkType, the categoryName, and categoryDescription. My question is how come when i read the file and copy the reading buffer "temp" into each struct it does not …

Member Avatar for musicmancanora4
0
156
Member Avatar for qamar2006

Hi all members.. how are you Can any one help me to make a C programming project ? Its an "Air Lines Reservition System" The project is for our C-programming semester in the university and its due to 15 - 4 - 2006 . The requirements is as follow: [quote] …

Member Avatar for Dave Sinkula
0
548
Member Avatar for regbrz

Heloo! I found codigo well very interesting, but the same it considers that all the processes arrive in instant zero, as I can make to consider arrivals in aleaórios instants. [code]* Scheduling Simulation*/ #include <stdio.h> #include <stdlib.h> /* Process Data Structure */ struct process { int pid; /* Process ID …

0
311
Member Avatar for stallion88

The first three people to complete this program will be entered into the annual contest for Top Coder! The grand prize is the chance to become one of TopCoders independent programmer. This is a special opportunity to get paid for programing projects that you create. Below is the program to …

Member Avatar for Rashakil Fol
0
554
Member Avatar for degamer106

How do I make selection sort work with strings in a structure?? My compiler doesn't seem to like my variable assignments under the show_alpha() function. :cry: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #define SMAX 12 #define LEN 20 #define EMPTY 0 void show_empty_num(struct data *); void show_empty_list(struct data *); void …

Member Avatar for Micko
0
210
Member Avatar for Roadkill

just wanted to say heya to everyone first, ok im doing a C++ assigment on linked list but im stuck. i need to write a program that reads records from a text file and then stores them in a linked list. i can read the data from a text file …

Member Avatar for Roadkill
0
107
Member Avatar for some one

Write a menu driven program that manipulates a list of students and has the following options: 1- Build list from file 2- Build list from keyboard 3- Print list Use the standard list ADT to build the student list. Student information are (name, level, ID) information please help with this …

Member Avatar for some one
0
238
Member Avatar for lev_arris

Hi guys, I'm currently making a GUI which displays a graph. At the moment it reads coordinates within an array in the code: public int datax[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public int datay[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, …

Member Avatar for iamthwee
0
146
Member Avatar for blackdove

I've been working on a binary search tree and I've written out most of what I think the code should look like but I can't test it because of an error I'm getting. I have no idea if what I have is even correct. My professor gave us the class, …

Member Avatar for Nedals
0
193
Member Avatar for Phaelax

The object I use to create a Transferable object with is the same object I should get on the drop component, right? All I want to do is drag a row from one JTable onto another JTable. I don't want to copy the data, only send index number of the …

0
77
Member Avatar for Eng_Girl

Hi, I'm new to this fourm I want to ask if anyone can help.I have a program for a GPS receiver it is in C ,for testing I assume the string of GPS message, it doesn't have any errors but it didn't run I don't know why. I used the …

Member Avatar for iamthwee
0
125
Member Avatar for nabil1983

Ok i finished off the program i was making. now i just got a couple problems icant work out....spent hours doing this please help me with my last few probs... First thing is when i write the records to file, and then when i try to sort it...the display shows …

Member Avatar for dwks
0
228
Member Avatar for hak

I know this is a noob question but where do i put my own code in this menu code for windows. [CODE]#include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "WindowsApp"; int …

Member Avatar for bumsfeld
0
203
Member Avatar for perlsu

I use CSocket with send() and recv() to send and receive structure packets of type Packet as follows: class Packet { int dataLen; char data[1024]; } packet; I tried but the received structure elements contained garbage. What would the code be on the send and receive sides of the app …

0
70
Member Avatar for fbe

Hi, I plan to prepare a Tangram puzzle solver as my project.It will give correct placement of tiles to form a given shape.Is it suitable to use a constraint programming approach or pattern matching techniques or a combination of both?Also what do you suggest as data structure to represent the …

0
96
Member Avatar for willseyvilleny

i need to finish this program by friday at 8:00am i know im new but i have a lot of work done so pretty much here is what i have. requirements programmer defined function for into - check user must input element statistics into element_t im pretty sure i made …

Member Avatar for tayspen
0
94
Member Avatar for Mistro116

Hello, I get the following seg fault error when I try to delete the last node of the list. Does anyone know why? My delete function and high level function are included below: The seg fault only occurs when the if value in BeginQuizFirstTry detecting that CheckAnswer is not true …

Member Avatar for Mistro116
0
106
Member Avatar for nabil1983

i got the quicksort coding correct ,, the problem is that the data is still not sorting below is the complete program to the database. The data is to be sorted by genre like i have stated i have checked over and over again but cant find nething wrong... The …

Member Avatar for nabil1983
0
184
Member Avatar for nabil1983

Hey after spending a few hours trying to understand why my quick sort is not owrking, i've tried calling the q_sort() and quick_sort() but with no luck...... below is how i had it from the start for less confusion,, can someone tell me why it isnt working... i've checked the …

Member Avatar for dwks
0
182
Member Avatar for nabil1983

This program is almost the same as the one last i posted but here the bubble sort algorithm is not working, i get a compiler error saying:: size of cdRecords is not known and need explicit cast to convert I cant work out what the problem is because another program …

Member Avatar for nabil1983
1
216
Member Avatar for nabil1983

I got everything working, a couple of probls with file write. But ill work it out. I just need help on getting the quick sort working here...i got it written and even in my switch statement but for some reason it dont work....ne one know y...?? [CODE]//(Database Management System(DBMS), user …

Member Avatar for nabil1983
0
455
Member Avatar for nabil1983

im trying to do a sort for the array structure records that i have entered... so far i've tried to use a book to do the coding...but im lost.. can anyone tell me if im on the right track or where im going wrong!!! [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> …

Member Avatar for perniciosus
0
188
Member Avatar for nabil1983

Hello I've rearranged my program so i can enter more than one word for a field and it works,, new problem is after just entering data once,, i get stuck in the menu with a loop. tried all kinds of stuff to get out but cant. what i want to …

Member Avatar for HyperEngineer
0
145
Member Avatar for nabil1983

'ello whenever i compile i keep getting an error saying identifier or declarator expected....for some reason i cant correct it neone know whats wrong??? [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void filewrite(void); void fileprint(struct tuple *myDB); // Idea here is to enter an array of structures // write them to …

Member Avatar for Ancient Dragon
0
235
Member Avatar for nabil1983

Ok i've tried understanding some previous posts but im just finding it really hard to work with structure passing to other functions and sorting. Can someone please explain in a simplistic on how i can pass structure to a function that sorts the structure by 'Year' or 'Artist' Below is …

Member Avatar for Ancient Dragon
0
143
Member Avatar for nabil1983

Ok i decided to start from scratch for my CD database. I've created an array structure, i can enter the fields, but for some reason it dont display to screen neone know why please??? also how can i add an option to either add more records or just quit . …

Member Avatar for perniciosus
0
114
Member Avatar for macupryk

I am using the following class. RichTextBoxPrint.vb Option Explicit On Imports System Imports System.Windows.Forms Imports System.Drawing Imports System.Runtime.InteropServices Imports System.Drawing.Printing Public Class RichTextBoxPrint Inherits RichTextBox ' Convert the unit that is used by the .NET framework (1/100 inch) ' and the unit that is used by Win32 API calls (twips …

0
150
Member Avatar for macupryk

:rolleyes: I have a control that I drag and drop. I would like to use the below instead of building a dll. I want to call the subroutine. Is there a way I can do so? I am not aloud to use build any extra dlls in the project. If …

0
160
Member Avatar for Ancient Dragon

This is a simple example of how to use recursion to get a list of all the directories (folders) and file names within them. It also illustrates simple use if std::list, std::vector, std::string, std::cin and std::cout. It was compiled and tested with both VC++ 6.0 and Dev-C++ compilers on XP …

Member Avatar for Dani
0
240
Member Avatar for haria_kishore

Hi friends Can someone help me in this pls.I have 2 tables in my DW One is a table which have all data regarding Income and Expenditure details. The structure (columns) of the table is ctgry_id,ctgry_nm,sbctgry1_nm,sbctgry2_nm,amount.,cmpny_id and tm_id So the records in this table would look like 10001 Wages and …

0
62
Member Avatar for JC_McGeekster

[color=black]Hello everyone, [/color] [color=black] [/color] [color=black] [/color] [color=black] I am a thirteen-year-old computer programmer, and have been into web design since I was nine or so. I live in [/color][color=black]Illinois[/color][color=black] of the [/color][color=black]United States of America[/color][color=black], with my beautiful Sony Vaio Desktop PC. Since I was a little kid, maybe …

0
79
Member Avatar for Manojsah

Respected members, hello, I am manoj , i need the help in finding out the multiple choice question on data structures(complexity, linklist, trees , graphs, stack, queue, vector, array, etc.) as my exam is comming so i had to prepare for it. thank you manoj

Member Avatar for tharglet
0
141
Member Avatar for chrisbliss18

I'm trying to help a friend of mine recover data from a harddrive that had its partition table corrupted. I have very little experience in this field (when it happens to me, I just start over from scratch) and would like to know if any of you could recommend any …

Member Avatar for Dortz
0
159
Member Avatar for md_salman

although this question is basically related to a data structure, still I think that a good progrmmer should be able to answer it. My question is that [B]"is it possible to determine the order in which some ( numbers or characters etc ) are arrived for insertion into a min …

Member Avatar for ITgeneration
0
158
Member Avatar for garraeth

[First I have to apologize because I am posting this in two different forums on this site -- in hopes of finding someone who might be able to help.] I am building a system to mimic the NT user and group system. It works fine, but because of the way …

0
67

The End.