177 Topics
|
|
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. … |
|
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 … |
|
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 { … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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] … |
|
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[]) { … |
|
#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; } |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 *, … |
|
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. … |
|
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) … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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. |
|
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 … |
|
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 |
|
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 … |
|
I am a new c programmer . I want to know more about data structure . Expert programmer please reply. |
|
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 ( … |
|
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 … |
|
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. … |
The End.