Oh ok. I understand and yes this is true. However it is the requirements of the assignment.
Type: Posts; User: lostandconfused
Oh ok. I understand and yes this is true. However it is the requirements of the assignment.
ok u all are going wayyyy over my head here. can we keep it to simple terms please?
The assignment requires the use of a linked list
I am doing the classic bigint problem adding and subtracting long integers via a linked list. I am having problems getting each digit individually into a linked list. Because the list goes from L>R...
I am having the same problem. Do you think you can help me out as well?
Yes, char* pntr. That is correct.
I have made some changes. Thank you all for your feedback. Now why am I getting an error when trying to access this portion in my code?
fscanf(fin, "%s ", &player[i].last);
This is...
Also, I would like to know if I am setting up the enums correctly. I haven't gotten to the point where I would use them just yet.
I have since made some changes...this is what my code looks like now.
#include<stdio.h>
#include<stdlib.h>
#define NUMBERS_PLAYED 6
FILE* fin;
so how do you suggest i fix it?
I am getting an error message saying that player is not initialize but I am trying to initialize it in my code on the line I am getting the error on. Ultimately I read in a file with a few players...
It messes up in the while loop when I am trying to mergeSort the data. The error message is:
86 [Warning] passing arg 2 of `findPerson' makes integer from pointer without a cast
Here is...
I've changed the part that you colored and I tried deleting
int struct record* and it still won't compile???
sorry bout that. i fixed it. But the error I am getting is not related to that. It says syntax error before 'int'. It is referring to the int after 'findPerson('
This keeps causing an error:
if (choice == 1)
{
int d = findPerson(int struct record* r, r[i].first, r[i].last, &r[i].age);
printf("This person is at index %d \n", d);...
this line is giving me an error: "Too few arguments to function 'strcmp'
while (lastsearch (strcmp(r[i].last)) < 0)
How can I fix this?
thanks. that helped a bunch. my program kept crashing but it's fixed now. Now I have to write a couple of functions which are really my weak point. could anyone provide me with some direction for the...
I am writing a program to sort records using a sorting algorithm of my choice. However before I can get to that I am having trouble reading in each record. Can someone provide some insight. I know...
ok so this is what I have now...
#include <stdio.h>
#include <stdlib.h>
struct stack
{
how do I declare newEmployee as a struct?
I am having a problem getting my program to compile. Can someone please see if they can get this to compile?
Thanks
#include <stdio.h>
nevermind...i figured it out. You guys were correct. I had it right all along. Next question - how do I recursive call a function to take the number I read in, say 1, 3, 6 and make all 2-digit...
cas---where exactly in the code should I try to print?
I have an array of numbers that I read in from the user. I know that they have been read in correctly because I am able to print them. Only problem is I can't sort my array. Can someone please help?...
I am trying to write a function to express this but I keep confusing myself. Maybe I am thinking about it too hard?
4.5 is halfway between 1 and 8. 4.52 = 20.25, so the square root of 8 must be...