Search:

Type: Posts; User: douglas481

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    5,382

    This example code i have was given to me by my...

    This example code i have was given to me by my teacher, she wanted me to learn from it. I didnt take it from anywhere else.Thank you guys anyways i figured out my code. You guys were very helpful.
  2. Replies
    11
    Views
    5,382

    Its not like that at all, i am trying to work...

    Its not like that at all, i am trying to work with things im not fully comfortable with. By someone guiding me in the right direction then i will be learning how it all works.
  3. Replies
    11
    Views
    5,382

    I found an example code that is doing similar...

    I found an example code that is doing similar functions that i am supposed to do, I just dont really know how to change the code so it applies to my code.
    Any ideas??



    //included libraries...
  4. Replies
    11
    Views
    5,382

    Having trouble identifying whats wrong.

    input file is

    3
    Abdul Rachel
    Lopez Charlie
    Schofield Theo

    by writing kyle richards and the new employee, im trying to get an output like this.

    Rachel Abdul
  5. disregard that printf("%s", new_employee); that...

    disregard that printf("%s", new_employee); that not on my code
  6. Trouble with structures,file input, output and prewritten string functions

    I have all of this done so far but having trouble going on the next part, any ideas??

    I will need to ask the user for the first and last names of the new employee.

    Then, you will need to...
  7. I see i looked through some examples and this is...

    I see i looked through some examples and this is what i came up with, still a little shaky.



    #include <stdio.h>
    #include <string.h>


    struct record{
    char fname[20];
  8. Should i take off the record out of the functions

    Should i take off the record out of the functions
  9. Ok so I think this is how the for loop should go,...

    Ok so I think this is how the for loop should go, i probably made some mistakes. thanks for your help :)



    #include <stdio.h>
    #include <string.h>


    struct record{
    char fname[20];
  10. Now the next step seems very confusing to me how...

    Now the next step seems very confusing to me how i would go about setting up this for loop, any ideas??
  11. dumb mistakes its like this now fscanf(ifp, "%d",...

    dumb mistakes its like this now fscanf(ifp, "%d", &num_people);
  12. Ok i understand, I believe now that part should...

    Ok i understand, I believe now that part should be okay.



    #include <stdio.h>
    #include <string.h>


    struct record{
    char fname[20];
  13. i forgot a period .lname

    i forgot a period .lname
  14. I believe its this way, hopefully i got it...

    I believe its this way, hopefully i got it right??



    #include <stdio.h>
    #include <string.h>


    struct record{
    char fname[20];
  15. okay here is my new code, i left out something on...

    okay here is my new code, i left out something on the first tweo scanf because i dont know how i would save the new employee's name.



    #include <stdio.h>
    #include <string.h>


    struct record{...
  16. Trouble with structures,file input, output and prewritten string functions

    Need some direction on this project, I have this so far but dont know where to go from here, heres the input file im reading from.

    3Abdul Rachel Lopez Charlie Schofield Theo I will need to ask...
  17. I didnt steal the code from anyone, i only...

    I didnt steal the code from anyone, i only changed the things in my code that were said in this thread. I was able to finally write the whole code the way i wanted to thanks for everyones help.
  18. ok so i changed several things and i now got this...

    ok so i changed several things and i now got this code.

    im getting an output like this:
    Player 1 score 7
    Player 2 score -3
    Breakdown: 1 0 1 0 2 -1 0 3 0 0 0 0 1 0 -2 0 2 0
    Breakdown: 1 -1 0...
  19. I sort of understand what cuzah means when he...

    I sort of understand what cuzah means when he says i need to be looping through the array. I dont have much clue to how i actuallly do that.
  20. Having an output issue working with input file, golf game.

    My code is down below. I trying to get an output from this input file input.txt.
    This is a golf game and the first row is the number of golfers,
    second row is the par and the last two rows are...
Results 1 to 20 of 20