I'm so sorry. Computer science instructor just e-mailed us correcting the assignment. He states that a new list must be created that is independent of L1 and L2; so, he can destroy L1 or L2 and still...
Type: Posts; User: Jedijacob
I'm so sorry. Computer science instructor just e-mailed us correcting the assignment. He states that a new list must be created that is independent of L1 and L2; so, he can destroy L1 or L2 and still...
I must create a new list that appends the two lists that are input into the function. However, those two functions must remain unchanged; so, if I printed out one of the original list it would remain...
Hi, I was given an assignment to write two functions.
The first function is rather easy and I think I have it. However, the second function is an ADT function called MergeList, which merges two...
I am currently working on a program in my computer science class that does various computations with complex numbers. For some reason, when the program gets to where it needs the DivCmplx (posted...
Thanks a lot! It was that simple and I didn't even see it! Thanks for all your help. I might ask again later for some actual code help when I probably see my errors hehe! Thanks soo much again!!!
...
Oh, sorry..this is in my interface file and I forgot about it:
typedef struct _cmplxCDT* Cmplx;
Also, here is my makefile which I would think would be the problem but everything looks fine to me:
# Source, Executable, Includes, Library Defines
INCL = complex.h
SRC = complex.c...
Here is my definition of the struct.
typedef struct _cmplxCDT
{
double x;
double y;
}cmplxCDT;
It's a linked list. We are studying unordered linked-list ADT's. Therefore, I am pretty sure we use the '->' instead of the '.' When I asked my instructor about the error he said that I probably...
Hi, I am doing a program that does all types of stuff with complex numbers. I think I have the code written correctly but keep getting an Undefined symbol error. It tells me sqrt and arctan and...
Thanks soo much guys! I appreciate it a lot! Thanks again!!
~~Jacob~~
Ok, 4 is b. =) I was definitely misreading the question. And 5 must be c because the whole point of using a linked list is dynamic memory allocation. Is my reasoning correct? Thanks guys!
Ok, number 5 must be c then...right? It does allow for dynamic memory allocation and does not have to be predefined, at least that sounds right to me heh.
How about 4? Is that one right? I would...
Personally I think the answers are:
1. c
2. c
3. b
4. a
5. d
I have a good idea on some of them but just wanted some backing. I am not positive and would like to be. Again, all help is...
I was given a few questions on a study guide for a computer science class. I am not sure of a few of them. If anyone could help, it would be greatly appreciated! Thanks for your help!!!
-Jacob
1....
I serviced every job to clear my queue. I then began adding jobs to the queue. The first two are fine but when I add a third job..for some reason, the first job in line is duplicated and printed out...
I have a program, consisting of 3 files: naivepq.c, naivepq.h, and printq.c. It is a printer queue that prints out a queued list, allows the user to add to the list, remove a selected item from the...
Just a little work I've done so far (added code tags)...
#include <stdio.h>
#include <stdlib.h>
const int n=30;
struct custInfo {
This is some of the work I have done so far.
#include <stdio.h>
#include <stdlib.h>
const int n=30;
struct custInfo {
int custId;
int rating;
Hi, I am TRYING to make a program but am having absolutely NO SUCCESS. I have read the sticky about no posting homework up but I have exhausted all my resources and have tried a few things but...