177 Topics

Member Avatar for
Member Avatar for ankilosado

Hi, there, I am also very new to Java. For class, I have to create an structure that reflects that of a document stored in a plain txt file. The hyerarchy of the classes is: Class document is made of //complex objects class Page objects, that are made of class …

Member Avatar for ankilosado
0
446
Member Avatar for guru_iyer

I have been told to sort an array of structure(student) depending on one of its members(per) using bubble sort. I need to sort the 'student' structure in descending order of 'per'. Please help. I'm stuck!! [CODE] #include<stdio.h> #include<conio.h> struct student { char sname[20],dept[25]; int rollno; float per; }s[30]; void accept(int …

Member Avatar for guru_iyer
0
931
Member Avatar for nix_xin

[TEX]. . . i need some tips on programming java with looping structure, tnx . . .[/TEX]

Member Avatar for brandonrunyon
0
123
Member Avatar for nix_xin

[CODE] import java.util.*; public class sSone { public static void main ( String[] args ) { Scanner scan = new Scanner ( System.in ); System.out.print ( "Enter an integer number from 0-128" ); int inInt = scan.nextInt [/CODE] PURPOSE: program that receives an integer number from 0-128 and displays the …

Member Avatar for Akill10
0
137
Member Avatar for Clawsy

I have too make an application in C that uses a dictionary. I have 54000 words in a file, on per line and I need a way to handle it. - I first wanted to keep it in an array but as it's bigger that INT (32767) I cannot do …

Member Avatar for Adak
0
131
Member Avatar for CarlMartin10

I have a program in which a user enters a sentence in English into a text box, then the sentence is translated into French and German based on words in an array of structures that gets its values from a text file. I have almost all of the program written, …

Member Avatar for jleonardo
0
621
Member Avatar for zyrus001

I'm looking to write a program that should be capable of holding around 1000 records, each record will contain a varying number of fields and values. Usually, I'd create a list of dictionaries for something like this but wanted to know if that's the right way to go about it. …

Member Avatar for griswolf
0
315
Member Avatar for krap_nek

Hi, well what I'm trying to do with this, is to read a text file line by line and pass its data to the struct. the problem is that not only i can't read the strings and put it on the struct fields, I also get a segmentation fault. Could …

Member Avatar for xwolfjack
0
3K
Member Avatar for Nicco

Hey there! I'm new to c++ and programming in general and have a quick question to why the program below works. I had most of it completed but for hours i couldn't figure out why every time i tried to enter input for the "make" member of my dynamic structure …

Member Avatar for Nicco
0
105
Member Avatar for Anex

I want to create a structure comprising of an integer and a pointer to it. However it doesnt seem to work and devC++ gives the following error [CODE]struct loha { int i; int *p = &i; ...7 } *pp; ...8[/CODE] Error : 7 I:\G\My CPP\structures.c [Warning] no semicolon at end …

Member Avatar for oieronle
0
134
Member Avatar for vegaseat

Starting with version 2.6 Python has introduced a new container called the named tuple. You can use it similar to a class based record structure, but it has the memory efficiency of a tuple.

1
1K
Member Avatar for krap_nek

Hey guys, What I'm trying to do is a function that gets a certain array of structures and print some of the information on the screen, like the name and id_number. The thing is that some fields in the structure are repeated and my goal is to show only one …

Member Avatar for Tellalca
0
115
Member Avatar for krap_nek

hi guys, I'm trying to implement a basic program which deals with structures and pointers. I have to insert data for various citizens, which is structure that have other structures as fields. in this case my main objective is to create 2 general functions that will get the information for …

Member Avatar for UncleLeroy
0
165
Member Avatar for ibrahim2010

hi all,in one of my interview the question paper was like this. we need a banking system application which is having account types like saving account,current account and these account type having deposit,withdraw which are different for the account type,but the view account balance is same for the account type.you …

Member Avatar for AndreRet
0
110
Member Avatar for Sealunar

I am a beginner in programming, so bear with me. I keep getting an error for this code saying: error C2664: 'activity' : cannot convert parameter 1 from 'char' to 'client_activity []' I am testing here to see if my function will pass the array back to main() so that …

Member Avatar for Lerner
0
107
Member Avatar for Pawello

Hello, I have a problem. In my program i use structure: [CODE]struct pole { pole *pole1; pole *pole2; pole *pole3; pole *pole4; pole *pole5; pole *pole6; pole *pole7; pole *pole8; };[/CODE] I want to make a function which would use correct pole(pole1, pole2...pole8) depending on parametres

Member Avatar for mrnutty
0
115
Member Avatar for Griff0527

I'm new to C Programming ( 6th week of an 8 week course ) and I am working on user defined structures. I have created a structure to store data received from a file and three of the four sub functions planned: open the file, store the data in the …

Member Avatar for Griff0527
0
8K
Member Avatar for Griff0527

I just started this program a few hours ago, and I am running into an error that I do not understand. I tried finding an answer on Google as well. First off, this is the bare bones of a code right now. I have not started any of the sub-functions …

Member Avatar for Griff0527
0
136
Member Avatar for nanosadra

struct Employee { /* Employee details */ char name[MAX_NAME_LENGTH+1]; /* name string */ char sex; /* sex identifier, either 'M' or 'F' */ int age; /* age */ char job[MAX_JOB_LENGTH+1]; /* job string */ struct Employee *prev, *next; }; static void menu_add_employee(void) { static struct Employee *employee_list = NULL; { …

Member Avatar for Adak
0
212
Member Avatar for tshudyb

I need to use an array of 5 elements. Each element of the array is a structure with 2 fields: the name of the hotel and a singly linked list of attendees staying in that hotel. Functions are: CheckIn CheckOut Transfer Count Print Quit If someone could just show me …

Member Avatar for tshudyb
0
105
Member Avatar for ButchMeatcook

Here is my program so far: [CODE] #include <stdio.h> #include <string.h> #define max 200 typedef struct { char triple[6]; unsigned index; unsigned lower; unsigned upper; } mpn; unsigned load_MPN_table (mpn *mpn_table[], FILE* input, unsigned max_size) { unsigned i; for (i=0; i<max_size; i++) { fscanf(input, "%s%u%u%u", mpn_table[i]->triple, &mpn_table[i]->index, &mpn_table[i]->lower, &mpn_table[i]->upper); // …

Member Avatar for ButchMeatcook
0
3K
Member Avatar for ahmedshayan

I am faced this Problem that I can't print display parent's content. Please help: [CODE] import javax.swing.JOptionPane; public class BinaryTree { private Node root; BinaryTree() { root = null; } //------------------------------------------------------------------ void buildTree() { String n=JOptionPane.showInputDialog("Root Information:\nEnter Name: "); int a=Integer.parseInt(JOptionPane.showInputDialog("Root Information:\nEnter Age of Root:")); String s=JOptionPane.showInputDialog("Root Information:\nAlive or Dead?"); …

0
73
Member Avatar for Suicidal_tool

This is a coursework help *Just so its clear im playing by the rules* A question on my coursework is to "Put a structure within a structure and show how this can be addressed". I understand regular structures, and *hopefully* this code is correct. But im having trouble working out …

Member Avatar for Suicidal_tool
0
103
Member Avatar for MDGM

Hi all, I have a very large amount of files I need to update, so I thought the easiest way would be to do it with php. [B]Below is the current directory structure[/B] [CODE]www.domain.com/branch_finder/country/county/town/[/CODE] I need to replace the existing index page in every "county" level directory inside the branch_finder …

Member Avatar for MDGM
0
348
Member Avatar for ayesha789

Hi Dear all Its my table structure... [CODE=mysql]CREATE TABLE IF NOT EXISTS `limsrentpayment` ( `PaymentMonth` varchar(15) NOT NULL, `SiteID` varchar(15) NOT NULL, `DurationS` varchar(25) NOT NULL, `DurationE` varchar(25) NOT NULL, `Amount` varchar(15) NOT NULL, `pDate` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/CODE] and data stored in it [CODE=mysql]INSERT INTO `limsrentpayment` …

Member Avatar for urtrivedi
0
146
Member Avatar for eissen_eiram

i have this program and i'm already done with the data entry, search, display and exit menu.. my only problem is my search and delete and the search and edit...please help me. i've attached my unfinished program here: Programming Assignment: Write a program to simulate a telephone directory. The user …

Member Avatar for jephthah
0
141
Member Avatar for smco9

How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[];

Member Avatar for VernonDozier
0
95

The End.