Search:

Type: Posts; User: lostandconfused

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: BigInt

    by lostandconfused
    Replies
    16
    Views
    6,313

    Oh ok. I understand and yes this is true. However...

    Oh ok. I understand and yes this is true. However it is the requirements of the assignment.
  2. Thread: BigInt

    by lostandconfused
    Replies
    16
    Views
    6,313

    ok u all are going wayyyy over my head here. can...

    ok u all are going wayyyy over my head here. can we keep it to simple terms please?
  3. Thread: BigInt

    by lostandconfused
    Replies
    16
    Views
    6,313

    The assignment requires the use of a linked list

    The assignment requires the use of a linked list
  4. Thread: BigInt

    by lostandconfused
    Replies
    16
    Views
    6,313

    BigInt

    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...
  5. I am having the same problem. Do you think you...

    I am having the same problem. Do you think you can help me out as well?
  6. Yes, char* pntr. That is correct.

    Yes, char* pntr. That is correct.
  7. I have made some changes. Thank you all for your...

    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...
  8. Also, I would like to know if I am setting up the...

    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.
  9. I have since made some changes...this is what my...

    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;
  10. so how do you suggest i fix it?

    so how do you suggest i fix it?
  11. Dynamic Memory Allocation (malloc vs calloc)

    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...
  12. Replies
    14
    Views
    3,321

    It messes up in the while loop when I am trying...

    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...
  13. Replies
    14
    Views
    3,321

    I've changed the part that you colored and I...

    I've changed the part that you colored and I tried deleting
    int struct record* and it still won't compile???
  14. Replies
    14
    Views
    3,321

    sorry bout that. i fixed it. But the error I am...

    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('
  15. Replies
    14
    Views
    3,321

    This keeps causing an error: if (choice ==...

    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);...
  16. Thread: strcmp

    by lostandconfused
    Replies
    3
    Views
    4,916

    strcmp

    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?
  17. Replies
    14
    Views
    3,321

    thanks. that helped a bunch. my program kept...

    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...
  18. Replies
    14
    Views
    3,321

    Sorting Records

    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...
  19. Replies
    8
    Views
    3,075

    ok so this is what I have now... ...

    ok so this is what I have now...




    #include <stdio.h>
    #include <stdlib.h>

    struct stack
    {
  20. Replies
    8
    Views
    3,075

    how do I declare newEmployee as a struct?

    how do I declare newEmployee as a struct?
  21. Replies
    8
    Views
    3,075

    Cafeteria Simulation

    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>
  22. Replies
    5
    Views
    4,981

    nevermind...i figured it out. You guys were...

    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...
  23. Replies
    5
    Views
    4,981

    cas---where exactly in the code should I try to...

    cas---where exactly in the code should I try to print?
  24. Replies
    5
    Views
    4,981

    Need a for loop to sort an array

    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?...
  25. Replies
    3
    Views
    13,968

    Square Root Recursive Problem

    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...
Results 1 to 25 of 36
Page 1 of 2 1 2