177 Topics

Member Avatar for
Member Avatar for Dactech

I am building an application with a user login and various functions. I want to use a flexible structure to load the current Users privileges into. eg the Functions could be: Product Maintenance Customer Maintenance Supplier Maintenance Accts Receivable, etc For each Function the User can be assigned privileges: Read …

Member Avatar for GeekByChoiCe
0
79
Member Avatar for vijaybrar

Hi I need help its actually working fine but i don't know how to put a control structure in knowing whether the input is wrong, example when i instruct user to input number it must be less than 100 if not error will show up that is only the last …

Member Avatar for vijaybrar
0
493
Member Avatar for kimmie87

I am practicing Visual Studio (2005) and I ran on to this problem, a Pascal Triangle. I don't kinda get how to produce an output like this: 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 …

0
83
Member Avatar for arindam31

[CODE]struct marks{ int p:3; int c:3; int m:2; }; void main() { struct marks s={2,-6,5}; printf("%d %d %d",s.p,s.c,s.m); }[/CODE] Output 2 2 1

Member Avatar for arindam31
0
4K
Member Avatar for b1izzard

Hi all, I need a little bit help in creating a small thesaurus like application in java. The application consists of some 50-100 categories and each category have some 2-10words of similar meaning. e.g Close-{shutdown,fold,end,come together} The words are hard-coded but I don't know which data structure suits the best. …

Member Avatar for JamesCherrill
0
197
Member Avatar for sagive

hey guys.. i have trying for 2 weeks now to connect 2 tables in the way that i need them to print out.. [B]to understand the table structure please see attachment 001[/B] Now... i have managed to join both table but the problem is that each time i insert a …

Member Avatar for sagive
0
226
Member Avatar for king03

Guys I need help. When I am already done inputting the needed information, when it comes to outputting file stream to a notepad it stops and says "program.exe has stopped working. windows is checking for a solution" and there is a loading bar. please help i don't know what I …

Member Avatar for Arbus
0
163
Member Avatar for king03

Hi there guys I need a little help about separation of two worded strings. Below is a program that will ask a user to input first name, middle name, and last name. Whenever I input a two worded string in the "Enter First Name" part, for example: "Michael Jordan" and …

Member Avatar for Ancient Dragon
0
101
Member Avatar for king03

Hi there friends I have an inventory program that stores all the data entered by a user. I am having trouble trying to output the infos entered. I tried to use for loop but no luck. Mine only outputs the last set of keyed in information. It will not output …

Member Avatar for Arbus
0
159
Member Avatar for kadhaipaneer

Hi I am trying to make arrays inside a structure.. the structure looks like, [code=c++] struct mystruct{ int val; int num; string state[]; mystruct *next[]; }; [/code] The next pointer array works fine but state array gives segmentation fault. I have an array of this structure . mystruct Graph [];

Member Avatar for vijayan121
0
139
Member Avatar for sim08u

Hi guys this is the first time ive posted to this forum, and ive tried getting my answer by asking others and google, but what i'm after is to complete an assignment that is asking me to complete a program that basically works as an ATM machine. it reads in …

Member Avatar for raptr_dflo
0
3K
Member Avatar for arshi9464

i was going thru an column in a book, which says:- For both classes and structs, you use the keyword new to declare an instance. This keyword creates the object and initializes it. Now if we use new operator for structures, then why is it not stored on heap???? I …

Member Avatar for abelLazm
0
98
Member Avatar for annitaz

[CODE]template < class Object> void fix(queueType < Object> &q, int n) { -if (n>=1) -{ ---Object temp = q.front(); ---q.deleteQueue(); ---fix(q,n-1); ---q.addQueue(temp); -} }[/CODE] (a)what will the final state of queue q1 be after the statement fix(q1,2); is exexuted, if q1 has the values (1,2,3,4,5} my answer: {2,3,4,5,1} because q.addQueue …

Member Avatar for annitaz
0
195
Member Avatar for montjoile

with this structures: [CODE]//Structure of binary tree typedef struct nodo_ab { int etiqueta; list primerapos; list ultimapos; char dato; struct nodo_ab* izq; struct nodo_ab* der; struct nodo_ab* padre; } nodo_ab; typedef struct nodo_ab *abb; //Structure of list typedef struct nodo_lista{ int dato; struct nodo_lista *sig; }nodo_lista; typedef struct nodo_lista *list; …

Member Avatar for montjoile
0
165
Member Avatar for DNHK

hello everyone umm I'm having trouble in printing a structure in c... is a program to calculate benefits of employees in a company when they are fired.. getting trouble when printing the hired date of an employee here its the code [CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> void menu(); struct …

Member Avatar for TrustyTony
0
235
Member Avatar for b1izzard

Hi everyone, I am trying to create Tag Extractor which is much like Twitter's Trending topics or Google's Top searchwords. Input file consists of a collection of some 3000 tweets. Problem 1: I am using "Qt" as the front end.(Entirely newbie to qt). Using two "List View" controls. one loads …

0
98
Member Avatar for sosongetsu

My class did a practice program and worked thru it however i was absent due to illness but i was sent the parameters they used for practice. I attempted it on my own but i was unable to figure it completely but i did get part of it down before …

Member Avatar for WaltP
0
2K
Member Avatar for amari ♥

the goal is to add, delete, display dota heroes, and display specifics, and exit. thanks!! :) #include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; void displayMenu(void); void initialize(hero_rec …

Member Avatar for gerard4143
0
112
Member Avatar for amari ♥

i need to place the correct functions .. the goal is to be able to add, delete, display dota heroes [CODE]#include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; …

Member Avatar for rubberman
0
124
Member Avatar for makibao

please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know …

Member Avatar for Ancient Dragon
0
137
Member Avatar for annitaz

Sort the list using quick sort with the middle element as pivot. Show the state of the list after each call to the partition procedure. Pivot = 5 Smallindex = i Index = j ⇒ j ≤ 5 (pivot) 11 8 9 4 2 5 3 12 6 10 7 …

Member Avatar for rubberman
0
100
Member Avatar for jaku78

Hi. Basically I first made some code to do mergesort on a list of numbers. Worked like a champ. Then I said, what the heck, why not do a mergesort on an array of structs, this is where it gets a little funky. While the first sort of the data …

Member Avatar for dkalita
0
106
Member Avatar for rockerjhr

ok here are the files [B]globals.h[/B] [CODE] #ifndef _globals #define _globals #define DATA( L ) ( ( L ) -> datapointer ) #define NEXT( L ) ( ( L ) -> next ) typedef enum { OK, ERROR } status ; typedef enum { FALSE = 0 , TRUE=1 } …

Member Avatar for Adak
0
274
Member Avatar for failbot

So, I'm writing an implementation of List in C++ as a programming exercise, so far I have this: [CODE]#include <iostream> #include <algorithm> using namespace std; template <class T> class Link; template <class T> class List_iterator; template <class T> class List { public: typedef List_iterator<T> iterator; List(); List(const List<T> & l); …

Member Avatar for failbot
0
343
Member Avatar for miku003

I'm trying to make an array-based queue that inserts and removes the elements... The default array is {0,0,0,9,10}. after the 0's are filled up it should say that its Full and will return to the loop. I'm having trouble making 3 particular methods which is dequeue, isEmpty, and isFull.. [CODE]class …

Member Avatar for miku003
0
174
Member Avatar for declna0872

Hi all, im am writing a program to take in and store a student's grade as an int. Can anyone tell me please how do i get the average score of the grade? This is what i have so far... Regards. [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; …

Member Avatar for Saith
0
2K
Member Avatar for nanderv

Hi, I'm creating an rts game. I'm looking for a way to store unit data. I thought, I'll make a struct for all the required data, and make a multidemensional array of them (one dimension is the different players, the other is the units). The length in both direction is …

Member Avatar for nanderv
0
171
Member Avatar for jay1648

Hi, Please suggest me all possible ways of declaring structures in my C codes. I want to be able to create a structure which I can use in my methods without have to use the keyword "struct" each time to declare it. One way I already know of is : …

Member Avatar for hyperion
0
184
Member Avatar for Ptap03

Hello, I'm new to this thread but have referenced to it before many times. I have finally joined thanks to all the great responses I have read in the past. Okay, I recieved an assignment which is as follow... "Declare a dynamic array of Person to store the information of …

Member Avatar for VernonDozier
0
442
Member Avatar for qazplm114477

It might seem appropriate to post this in the MySql section but I guess this is also a PHP question. Which is the more efficient way for adding new fields? I haven't written the code yet because I want to get the database structure right before coding. Here's my logic. …

Member Avatar for qazplm114477
0
108

The End.