Search:

Type: Posts; User: Ludicrous

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,603

    Excellent idea, thank you. At a glance it...

    Excellent idea, thank you. At a glance it doesn't seem like it will be too difficult, but I know projects are never (almost never) as simple as they look.
  2. Replies
    4
    Views
    2,603

    Project ideas

    Hi everyone, I'm trying to come up with a meaningful low level project to work on in C.

    The only two meaningful low level projects I have worked on include compression and encryption.

    In school...
  3. Replies
    5
    Views
    1,196

    anduril462, The links you provided were very...

    anduril462,

    The links you provided were very helpful, I made the edits you and Salem recommended. Thank you guys very much, now it's time to tackle a major beast since this test code is now...
  4. Replies
    5
    Views
    1,196

    Salem, 1. I'll look into that, I didn't...

    Salem,

    1. I'll look into that, I didn't really give it much thought.
    2. THANK YOU!
    3. lol, yeah
    4. didn't know that, i'll check out the faq

    THANK YOU!
  5. Replies
    5
    Views
    1,196

    Binary File Reading

    The goal of the program is to read in any file, exe, mp3, etc. and make a working copy of it. Here's my code:



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

    #define BUFFER 1...
  6. Thread: Do While

    by Ludicrous
    Replies
    4
    Views
    967

    Ok, I found the problem, generally I use arrow...

    Ok, I found the problem, generally I use arrow keys as part of the real program, so the problem lies in that an arrow key is actually 2 inputs I believe
  7. Thread: Do While

    by Ludicrous
    Replies
    4
    Views
    967

    Oddly enough, the fix seems to be this: Correct...

    Oddly enough, the fix seems to be this:
    Correct me if i'm wrong, but this this how a do while loop is read:

    Do the loop once
    Check condition
    Do loop again
    Check condition
  8. Thread: Do While

    by Ludicrous
    Replies
    4
    Views
    967

    Do While

    Hey, I am trying to work my way though a very simple problem, but I can't seem to figure it out. I am trying to learn why my do while loop runs twice after one key input. I expected the output to...
  9. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    Thank you everyone for answering my questions. ...

    Thank you everyone for answering my questions.

    I don't fully understand the issue with printing an integer as a float (Not that I would intentionally do this), however I know what to look for...
  10. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    I tried to program a test to see which variable...

    I tried to program a test to see which variable gets assigned a float in the code:



    printf("%.2lf\n", (float)(A+B-C*D/E-F+G*H/I));


    however, I couldn't figure out how to test for this.
    I...
  11. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    So far my idea is that if there is a statement ...

    So far my idea is that if there is a statement that has conflicting syntax, but is still compiliable like :



    printf("%.2lf\n", x);
    printf("%.2lf\n", 1+2-3*4/5-6+7*8/9);


    it will merely...
  12. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    Here is another interesting problem: ...

    Here is another interesting problem:



    #include <stdio.h>

    int main()
    {
    float x;
    float y;
  13. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    Ah, I found a mistake in the codeing: ...

    Ah, I found a mistake in the codeing:



    printf("%.2lf\n", 1+2-3*4/5-6+7*8/9);


    produces an integer, and using %lf is the wrong syntax for an integer. I assume, when you display an integer...
  14. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    Is 1+2-3*4/5-6+7*8/9 by itself assumed to be...

    Is 1+2-3*4/5-6+7*8/9 by itself assumed to be solved using only integers?

    if x is assigned as a float, wouldn't the equation be solved using float numbers?

    It is still a little confusing
  15. Thread: Simple math

    by Ludicrous
    Replies
    15
    Views
    1,908

    Simple math

    I have this program:



    #include <stdio.h>

    int main()
    {
    float x;
Results 1 to 15 of 15