15,539 Topics

Member Avatar for
Member Avatar for compshooter

I have three doubly linked list queues and I need to sort them based on a variable that each object has namely its job length. I am attempting to code for a shortest job first processing program. I already have most of the program complete but now I need to …

Member Avatar for compshooter
0
235
Member Avatar for byte_me

[code] /* v_regdb.c ****************************************************************/ /* */ /* */ /* */ /* This is a maintenance program for an existing Vehicle Database. */ /* The program is an interactive menu system, which allows the user to */ /* edit, delete and insert records into an existing database. */ /* All input …

Member Avatar for byte_me
0
161
Member Avatar for blackdove

:confused: This is my first recursion project and i have no idea if i'm even going about it the right way...It's a palindrome checker, which checks for integers. I can't check it character by character as a string. It compiles clean but when i execute it i get weird results …

0
89
Member Avatar for xerxes1986

alright i am trying to write a program that implements a class AirborneLocation that stores info on planes in the sky yada, yada, yada....i won't post the whole src code cuz it is hella long but i will post the section that gives me the compiling error [CODE]ostream& operator<< (ostream& …

Member Avatar for Narue
0
174
Member Avatar for atrusmre

I am currently trying to add an edit box to my program. Everything is find until I add a variable to the edit box. The program runs fine until it is terminated, then I get an assertion error. Any ideas what could be causing this?

Member Avatar for Narue
0
137
Member Avatar for eleet

I first read in data from a file. Then the user is prompted for a name of a person trying to enter the party. If the name of a person trying to get in does not match any name on the invitation list, the program should print a message indicating …

Member Avatar for Dave Sinkula
0
131
Member Avatar for robert_sun

Can anybody help me on this problem: I am writing a simulation program with several files. In a header file, I declared e global variable in hope that all other files could use it. so i put down: #define size 100 int memory[size]; in the header file memory.h. However, there …

Member Avatar for Narue
0
113
Member Avatar for cblue

i was wondering how to strip off digits one by one and store them into an array so i can sort them. For example if the user entered 7216. take the 7 stor into cell one, take 2 store it cell 3 ettc and then sort it so it looks …

Member Avatar for Narue
0
181
Member Avatar for Rose Aashii

Hye all!! here is an program statement i don't know how to do it :o ..so plz let me know itz solution... program is written below:- [B]Write a program that will get 10 numbers between 20 and 100 and store them in one dimensional array of type int , as …

Member Avatar for Narue
0
250
Member Avatar for Sluga

Hi, i'm doing a program in OpenGL and need some help with arrays. Basically I have a structure called ObjectNode which is used to implement a linked list with two data members, an int for the object type and an array of IntPoints (IntPoint is just a simple structure to …

Member Avatar for Sluga
0
2K
Member Avatar for YoungCoder

Hi there, I have an image that is split into lots of little images that when flipped through would effectively animate the character. :cool: How would i go about playing through the images, i assume i would somehow map the image into a two-dimensional array and then just run through …

Member Avatar for YoungCoder
0
233
Member Avatar for nizar4445

Please could you give me an example of sorting an array and[B] how to call the [/B] [B]function at the main [/B] thanks a lot :o :rolleyes: :rolleyes:

Member Avatar for vegaseat
0
215
Member Avatar for kohkohkoh

In file proceesing how can i find the renamed file.... meaning....i created 2 files named derrick.txt and alex.txt and in the program when i input derrick, the program will look for the file derrick and open the file, and if i enter alex, the program will look for alex.txt thank …

Member Avatar for kohkohkoh
0
74
Member Avatar for jonnie83

When trying to build me program the error message [COLOR=Red]LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Marking Program.exe : fatal error LNK1120: 1 unresolved externals[/COLOR] occurs. I am not sure why this happens, any thoughts

Member Avatar for Dave Sinkula
0
305
Member Avatar for lulug76

Hi am new to programming and I really need some how to check an array to see if a number already exists. I read the tutorials about random number genertors but I am just not getting how to check if the random generator already generated that number somewhere else in …

Member Avatar for Narue
0
112
Member Avatar for nailzfan

hello all, this is my first time posting. Okay, I'm reading a character array from a .dat file. The character array has 6 elements and I'm supposed to fold the integer values of the character array. The professor wants us to pair up consecutive indexes and add them together. For …

Member Avatar for ssv
0
103
Member Avatar for mel2005

Just wondering if you would help me in my assignment, I've started on them. I've done most of it except the following three questions. (1) Any flight can be brought to the front of the queue ready for deleting (landing) For example if the flight is in the back, we …

Member Avatar for Fasola
0
258
Member Avatar for mel2005

[B] (1) any flight can be brought to the front of the queue ready for deleting(landing) (2) any flight can be diverted to the back of the queue for another airport if the first airport is busy or on runway closed due to an accident. (3)in the flight ID, there …

Member Avatar for Narue
0
128
Member Avatar for nizar4445

(Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be processed by the program. It is known that all the data …

Member Avatar for Narue
0
136
Member Avatar for nizar4445

Heeeeeeeeeeeeeeeeelp :cry: :cry: :cry: hello all can anybody help me pleeeeeeeeeeeeeeaaaaaaazzzzzzzzzz!!!!! Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be …

Member Avatar for Dave Sinkula
0
147
Member Avatar for rborob

can anyone help me with this switch statement? i want it to go through line by line my file and, in the cases, increment x, y and z counts depending on the value of each digit in the strings. i debugged and its giving me some stupid value for xcount. …

Member Avatar for Dave Sinkula
0
148
Member Avatar for star320

Can someone please help me where to begin on this problem... I don't want answers, just some guidance: I have to make a program that reads a 4 digit integer: and encrypt it with a calculation: then swap 1st digit with 3rd, swap 2nd digit with 4th and print the …

Member Avatar for letmec
0
140
Member Avatar for koolguysj

[code] #include <stdio.h> #include "Boolean.h" #include "combinatorics.h" /* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { *nfact = 1; while(n > 0) { …

Member Avatar for murschech
0
397
Member Avatar for JoBe

Hi ladies and gents, Next exercise is the following: Write the function which we can declare as follows: unsigned char bcd (int n); The idea of this function is to store the last two decimal numbers of n into a 'binary coded decimal' byte and to return this value. So, …

Member Avatar for Narue
0
598
Member Avatar for dal4488

This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it? To avoid an infinite loop make sure the loop body: alters the exit condition or contains at least one output …

Member Avatar for thedk
0
106
Member Avatar for letmec

I'm working on TSR through C. i have writen dogens of them for dos, :rolleyes: but it works for dos only, can you tell me who to write TSR's for windows. Thankyou....

Member Avatar for Fasola
0
358
Member Avatar for some one

hi every 1 i am new and Ihope that you would help me I have to write a program that will allow you to enter if you enter the password without using strcmp function and here is my try [code] #include <iostream> #include <cstdio> using namespace std; bool password(); int …

Member Avatar for Fasola
0
258
Member Avatar for rborob

does anyone know any easy way of reading in a file line by line. im assuming i need to use ifstream then just do while (!file.eof()) getline(file, string); i need to read each string into a switch statement and then extract 3 values: vertex.x vertex.y vertex.z for each string read …

Member Avatar for Narue
0
103
Member Avatar for shock1

Write the definition of a function dashedLine , with one parameter , an int . If the parameter is negative or zero, the function does nothing. Otherwise it prints a complete line terminated by a new line character to standard output consisting of dashes (hyphens) with the parameter 's value …

Member Avatar for Narue
0
105
Member Avatar for koolguysj

[CODE]/* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { unsigned long int count = 1; unsigned long int result = 1; while(count <= …

Member Avatar for Dave Sinkula
0
123

The End.