177 Topics

Member Avatar for
Member Avatar for koricha

Hello i need help with a program which allows the user random read access to any entry of the array. If the user attempts to read outside the useful region, your data structure should return a 0. Also It allows the user random write access to the useful region only. …

Member Avatar for koricha
0
148
Member Avatar for scottd82

Hey everyone, I wrote some code to create a deck of cards, described the deck and randomly deals 5 cards. First, I want to let everyone know that this is homework for my C-II college class, so I am not looking for any answers, but solutions or guidance in figuring …

Member Avatar for WaltP
0
996
Member Avatar for koricha

Hello This program uses a dynamic array , which shifts x elements to the right. the program works, but my question is whether i defined shift_elements(int index,int pl) in the right way or is there a different way to do the function in the main() thank you [CODE]class MyArray { …

Member Avatar for koricha
0
255
Member Avatar for Alex_2011

Hi, I am learning about the search capability in an array. I wrote a code that stores three names (first & last) and I want to: - Make the user select a number (from 1-3) by using a (combobox) - If the user select the proper number then a message …

Member Avatar for Alex_2011
0
326
Member Avatar for aashishsatya

I was trying to input strings into a structure I made, but I couldn't succeed. I use Visual C++ 2010 Express Edition. The code is this: [CODE]#include<iostream> #include<conio.h> #include<stdio.h> #include<string.h> using namespace std; struct schrec { char childname[20]; int childage; }; void main() { schrec record[20]; int n; cout<<"How many …

Member Avatar for jaskij
0
666
Member Avatar for karmstrong

I am having and issue getting my add to list function to work in my data structure list class. I have all functions working except addToPostion. addToHead, addToTail, deleteFromhead, deleteFromTail, and DeleteFromPosistion all work as expected. I'm confused on the addToPosistion. The entire .cpp file is posted. Any and all …

Member Avatar for karmstrong
0
306
Member Avatar for vincenzorm117

I have been having trouble developing a function that frees all of the memory associated with structs of a linked list. Im not asking for a clear cut answer, just an idea or a function that can aid. F.Y.I. the linked list contains a head struct and a tail struct …

Member Avatar for sorry711
0
236
Member Avatar for jaspal.indivar

Hi everyone, I am doing on page optimization for one my client but I want to change the URL of my website without effecting the other navigations in the webpage. Here is the webpage that I need to be optimized [CODE]www.xxxxxxxxxx.com/what-we-do/managed-services/data-centre-services.php[/CODE] I need to change the above URL into [CODE]www.xxxxxxxxxx.com/data-centre-services.php[/CODE] …

Member Avatar for Josephm
0
262
Member Avatar for PrimePackster

I have written a simple program to save details about a maximum of 20 people using structures. But when i run it, gets gives me error....... Here is the code... [CODE]// Hihi.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { …

Member Avatar for PrimePackster
0
181
Member Avatar for srinidelite

#include<stdio.h> int main() { int i; typedef struct BookDB { int iPageNo[10]; char cBookName[10]; } b1[5],*b2; // *pvBookDB = &vBookDB; b2 = &b1; printf("Enter the pageno folloed by bookname for 5 books at at time"); for(i=0;i<=5;i++) { scanf("%d,%s",b2[i].iPageNo,b2[i].cBookName); } for(i=0;i<=5;i++) { printf("%d,%s",b2[i]->iPageNo,b2[i]->cBookName); } return 0; }

Member Avatar for jumbowat
0
138
Member Avatar for abhishek_s_n

Hey, I am kinda stuck with the way I should structure my Project. Was going well till now, but now it seems I'll have to re-structure it. My project is Peer to Peer chat and File Sharing. It performs device discovery, chat and file transfer. I plan to implement it …

Member Avatar for JamesCherrill
0
163
Member Avatar for Bladtman242

As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want …

Member Avatar for Bladtman242
0
190
Member Avatar for Morten Brendefu

Dear enlightened ones. First of all. I am using Delphi 9. My code compiles and run with no error at all, still I am confused about the structure window in the Delphi window. It tells me that I have redeclared some identifiers. The thing is that I have a few …

Member Avatar for pritaeas
0
906
Member Avatar for kjs5533

Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter …

Member Avatar for pseudorandom21
0
453
Member Avatar for Mindless Z

I'm working on a project and i'm having a bit of trouble. the basic idea is to make an employee database using a basic structure. the program is to have 3 files and in the header file the professor wants the function prototype to be: [CODE]int addEmployee (struct employee *, …

Member Avatar for Mindless Z
0
152
Member Avatar for dgreene1210

I'm having problems with my code all over. I have to be able to open a command line argument( which i know how to do). create a linked list, and print it backwards. This is what i have but im stuck with errors that i don't know how to fix. …

Member Avatar for dgreene1210
0
180
Member Avatar for djjavo

Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) …

Member Avatar for djjavo
0
2K
Member Avatar for valestrom

Hi, I'm trying to make a set of monsters that have values that can be loaded. Like a Goblin having enemyhealth = 50, enemydamage = 15, etc. Here's what I kinda have an idea of doing... But I really have no idea how to use it. (File containing values for …

Member Avatar for valestrom
0
288
Member Avatar for infantheartlyje

HI folks, This is my code. How can i pass a outside structure parameter to a class method? [CODE]using namespace std; struct status { char name[80]; double balance; unsigned long account_num; }; class FileHandler { public: FileHandler(string); ~FileHandler(); int getRecords(struct status *); int putRecords(struct status *); private: string fileName; fstream …

Member Avatar for raptr_dflo
0
170
Member Avatar for aero31aero

I have a file of name PROFILES.DAT in which several records are stored. I want to create some new fields in those records so I made a new program to read the file, store records in a structure, copy the structure elements into a new structure and finally write the …

Member Avatar for aero31aero
0
227
Member Avatar for toneranger

I have some stock market price data organized as follows in a structure: struct PriceInfo { string Date; unsigned int Time; double Open; double High; double Low; double Close; unsigned int Volume; }; This struct organizes price data per interval of date and interval of time, where time is measured …

Member Avatar for toneranger
0
849
Member Avatar for gotboots

Hi all, just wondering what the best way is to structure time in sql database. For example, at present i use this format ; 19/08/2011 (which is day/month/year). when i call this in a sql statement, it shows all results, but not in a chronological order. Can any body solve …

Member Avatar for urtrivedi
0
169
Member Avatar for infantheartlyje

Hi folks, [CODE] int a=10,b=5,tmp; tmp=a; a=b; b=tmp; [/CODE] This is ordinary swap. I want to do this swap to the structure variables. And how to free the memory of tmp structure variable after swapping.

Member Avatar for WaltP
0
221
Member Avatar for niyasc

Following is the code written to implement a employ manipulation system using pointer to structures . It makes some allocation problem in dev-cpp while work well in turbo c. Can you help me to understand the problem[CODE] // Implement pointers to structures to produce employ manipulation and produce output //as …

Member Avatar for Narue
0
183
Member Avatar for msPriesterM

Hi, I haven't seriously written Java code in over 5 years. I am looking to find good online resources to help me refresh in a few weeks. Thanks! Marquita

Member Avatar for NormR1
0
146
Member Avatar for arunkumars

Using pointers to structure in C#. I get an error 'Cannot take the address of, or get size, declare a pointer to a managed type' on the line "MyStruct* pMystruct", I have been trying to find out a solution out of this, but in vain. please help me out with …

Member Avatar for nick.crane
0
73
Member Avatar for top_coder
Member Avatar for Narue
0
64
Member Avatar for jmandumpal

Friends, I would like to reformat a file ( fort.80) to fort.90! For that I used type constructs for reading the input ( fort.80) as well as writing it to output ( fort.90). I can successfully do copying all but one case (dihedral), where the output file looks blank ( …

Member Avatar for jmandumpal
0
174
Member Avatar for arunkumars

Hi, Am trying to use pointers on structures in c#. A separate class file. (the class file contains only strucutres, and the class has been removed. [code] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct strEmployee : INotifyPropertyChanged { [MarshalAs(UnmanagedType.Struct)] int _EmpNo; public int EmpNo { get { return _EmpNo; } set …

Member Avatar for sknake
0
350
Member Avatar for Rizi004

please help me i m having problem for making this program First Part: (Using Structures) Create a structure called Complex for performing arithmetic with complex numbers. Complex numbers have the form realPart + imaginaryPart * i where i = √(-1) Use floating point data to represent members of structure (i.e. …

Member Avatar for Narue
0
505

The End.