Search:

Type: Posts; User: JoshD75

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Thanks Tater, I need to clean it up first. As...

    Thanks Tater, I need to clean it up first. As you said it may be simple, but to give it out to others it needs work first..
  2. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Thanks Tater, If something like this is going...

    Thanks Tater,

    If something like this is going to go on multiple computers here at work, which option would you recommend? (I'm gonna make it more elaborate first)
  3. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    very true my friend

    very true my friend
  4. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Oh, one more question... When I run this...

    Oh, one more question...

    When I run this while in Visual C++ it works fine, but when I copy the .exe file to my desktop and run it, I type in the "number" and the console just dissapears. Any...
  5. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Ahh thanks Mike. Got it

    Ahh thanks Mike. Got it
  6. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Hmmm, Im not getting errors now but I am getting...

    Hmmm, Im not getting errors now but I am getting some crazy results...




    #include <stdio.h>

    int main(void)
    {
    int number =0;
  7. Thread: Simple problem

    by JoshD75
    Replies
    13
    Views
    1,202

    Simple problem

    I am almost embarassed to be asking about something seemingly so simple, but I havent touched C in a while. What am I doing wrong here? I want the user to enter a number, and the result is that...
  8. Replies
    55
    Views
    6,402

    Thanks to both of you. I was planning on...

    Thanks to both of you. I was planning on cleaning it up and adding //comments after I had it working. I agree, it doesn't look too great "as is".

    Tater,

    Now I am curious about these things u...
  9. Replies
    55
    Views
    6,402

    The assignment was just to include the Name and...

    The assignment was just to include the Name and Letter Grade, so I better leave it at that...

    Anyway, I think I have it completed. I figured out the fpwrite and fprintf statements and output the...
  10. Replies
    55
    Views
    6,402

    This is what gets printed out now, correct as...

    This is what gets printed out now, correct as expected....


    John Doe 80 90 70 100 90 95 Average = 89.75 Final Grade = B
    John Doe2 90 80 90 90 95 100 Average = 93.75 Final Grade = A
    Jane Doe...
  11. Replies
    55
    Views
    6,402

    Ahhh, duh. Yea I got it. That's the point of...

    Ahhh, duh. Yea I got it. That's the point of the if else() statement. It keeps going through until it rings "true" then it stops. The between "80-90" doesn't matter. Makes sense. Ok I got it...
  12. Replies
    55
    Views
    6,402

    Ok, before I attempt the full printf() results, I...

    Ok, before I attempt the full printf() results, I am having a hard time finding anything that explains "between" statements. My book doesnt even have anything on that, which leads me to believe I am...
  13. Replies
    55
    Views
    6,402

    I am getting a syntax error, but I think it...

    I am getting a syntax error, but I think it should be something along the lines of.....



    while (! feof(fp))
    {
    fscanf (fp,"%s %s %d,%d,%d,%d,%d,%d",firstname,lastname,&q1, &q2,...
  14. Replies
    55
    Views
    6,402

    Works fine Tater, I added some names and some...

    Works fine Tater, I added some names and some scores and it works as intented. To mix it up a bit, let me tell you what I think needs to happen next and you can tell me if I am way off or on the...
  15. Replies
    55
    Views
    6,402

    Got it! I think? I am going out for a bit and...

    Got it! I think? I am going out for a bit and will check your response when I get back. Thank you again!




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

    int main( void )
    {
  16. Replies
    55
    Views
    6,402

    Hi Tater, sorry for the delay. I have been in...

    Hi Tater, sorry for the delay. I have been in and out and not by my computer much. This is what I have thus far, and it is obviously not correct. I created a variable grade as float and did the...
  17. Replies
    55
    Views
    6,402

    I see you edited out your "try to do this with...

    I see you edited out your "try to do this with integers if you can". That confused me originally, as the result would be in Float I would think, "85.50" or whatever. I am going to work on this...
  18. Replies
    55
    Views
    6,402

    Correct Tater, all 3 lines of data show up...

    Correct Tater, all 3 lines of data show up exactly like yours shown above.

    The formula is q1-q4 are each valued at .10%, midterm is .25% and final is .35%

    Thanks again...
  19. Replies
    55
    Views
    6,402

    Yea, thank you Tater. That is pretty darn...

    Yea, thank you Tater. That is pretty darn obvious after seeing it in code and reading it line by line....works perfectly. However it does NOT print the last line twice, at least on my end....

    Ok...
  20. Replies
    55
    Views
    6,402

    My 945 page textbook has exactly 2 sentences on...

    My 945 page textbook has exactly 2 sentences on feof(), which really don't appear to help. I am going to try to get this without bothering you every 15 minutes until I have something substantial to...
  21. Replies
    55
    Views
    6,402

    Ok, so now I have an infinite loop of the first...

    Ok, so now I have an infinite loop of the first line....




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

    int main()
    {
  22. Replies
    55
    Views
    6,402

    Ok, I tried this and got the first line to repeat...

    Ok, I tried this and got the first line to repeat like 20 times...obviously not correct, but I am thinking I am closer....





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

    int main()
  23. Replies
    55
    Views
    6,402

    Ahhhh got it! There are no commas in between...

    Ahhhh got it! There are no commas in between firstname and lastname in the file, yet I was scanning for them. Makes sense. Ok, so I got it read in properly. Whats the next step? I am assuming...
  24. Replies
    55
    Views
    6,402

    No problem, I appreciate clarity :) Ok I...

    No problem, I appreciate clarity :)

    Ok I fixed the file, and now I can see the first name "John" a bunch of weird symbols, and numbers after that.



    #include <stdio.h>
    #include <string.h>...
  25. Replies
    55
    Views
    6,402

    Note for this to work... the file format has to...

    Note for this to work... the file format has to be fixed as
    firstname<space>lastname<space>int<coma>int<coma>int<coma>int<coma>int<coma>int<newline>


    Ok, I tried looking this up but couldnt...
Results 1 to 25 of 42
Page 1 of 2 1 2