Search:

Type: Posts; User: CommonTater

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Yes... on any compiler that is either C99 or C89...

    Yes... on any compiler that is either C99 or C89 compliant all you have to do is add a leading space in your scanf() family statements...


    scanf(" %c...
    scanf(" %s...

    And it will ignore crap...
  2. Replies
    10
    Views
    1,037

    And while you're at it get rid of Turbo C......

    And while you're at it get rid of Turbo C... really, it's a freaking dinosaur that's just too stupid to lay down and become extinct.

    A far more up to date compiler with most of Turbo C's features...
  3. Nope.... we don't give out source code like that....

    Nope.... we don't give out source code like that.

    YOU make the effort... get the project started. Take it along as far as you can by yourself.
    If you get stuck (really stuck, not lazy stuck) you...
  4. Actually... you can't convince someone stupid...

    Actually... you can't convince someone stupid enough to think that textbook learning in a university environment is everything there is to know of *anything*.

    In the real world, which I doubt...
  5. Replies
    8
    Views
    1,379

    Flowchart Software - Download SmartDraw FREE for...

    Flowchart Software - Download SmartDraw FREE for easy flow chart and process flow documentation tools and resources!
  6. And exactly how do you know that? Because some...

    And exactly how do you know that?
    Because some faux-authority "battery university" website said so?

    In fact the common sense goal --and the one most appear to have followed-- is to maximize...
  7. Replies
    9
    Views
    1,383

    o = startval; for(;o

    o = startval;
    for(;o<=endval;o++)
    {
    for(; i<=o/2; i++)


    The above is a *real bad idea* .... put the initializer for the loop *in the loop*.
    What is the value of...
  8. Replies
    13
    Views
    1,082

    Seriously? char filename[256]; // put...

    Seriously?



    char filename[256];

    // put client's filename in filename[]


    fp = fopen(filename,"w");
  9. Congratulations... you've just realized that you...

    Congratulations... you've just realized that you are working with a language that has *exactly zero* runtime error checking.

    It is incumbent upon you to write code that doesn't do stuff like that....
  10. Let me give you an example of the difference...

    Let me give you an example of the difference between "I own a toshiba laptop" and "I'm responsible for mantaining 250 toshiba laptops"... If you owned one of the ones we were working with you would...
  11. Given that I don't read phantamotap's drivel, I...

    Given that I don't read phantamotap's drivel, I didn't see it... and wouldn't give him the pleasure if I did.
  12. ROFL... still thrasing this non-issue? Just...

    ROFL... still thrasing this non-issue?

    Just one question... How many of you have actually worked in a hardware service position to have anything but theoretical knowledge of this user scenario? ...
  13. Replies
    2
    Views
    1,079

    Load in bytes, read dword... load in dword, read...

    Load in bytes, read dword... load in dword, read bytes...


    typedef union t_dwordtobyte
    {
    uint32_t dword;
    struct bytes
    {
    uint8_t b1;
    uint8_t b2;
  14. #include void calcsubtotal(int...

    #include <stdio.h>


    void calcsubtotal(int days, double rate, double food, double* totalFood, double* totalRate)
    { *totalFood = days * food;
    *totalRate = (days - 1) * rate; }


    void...
  15. Replies
    2
    Views
    1,170

    Take out all the LBS_ styles... what do you get?...

    Take out all the LBS_ styles... what do you get?

    I believe LBS_STANDARD includes the LBS_SORT...

    List Box Styles

    LB_ADDSTRING message
  16. Here, run the code below as an example of why you...

    Here, run the code below as an example of why you can't do that...



    #include <stdio.h>

    int* MyFunction(int a, int b, int c)
    { static int array[3];
    array[0] = a;
    array[1] = b;
  17. Replies
    22
    Views
    1,689

    Rewrite the thing as a proper loop, without...

    Rewrite the thing as a proper loop, without trying to jam everything into the for() statement and you'll be able to actually track down the problem.

    What you've got there is a debugging nightmare...
  18. Well... as apologies go that massively sucks......

    Well... as apologies go that massively sucks... but I'll take it.
  19. Ok... so you want to keep your laptop charged to...

    Ok... so you want to keep your laptop charged to only 40% while it's running on AC power because you're somehow convinced that charging it to 100% will degrade the lifetime of your batteries...

    My...
  20. And people wonder why I get ........ed off at...

    And people wonder why I get ........ed off at you...

    Try writing without the insults and putdowns...
    They're not helping you one little bit.
  21. Ahhh man... I've had days like that, too ......

    Ahhh man... I've had days like that, too ... bummer :D
  22. Actually that would be argv[0], argv[1], argv[2]...

    Actually that would be argv[0], argv[1], argv[2] and argv[3] ... I'm betting mult is the program name.
  23. Replies
    5
    Views
    971

    Tell me... if you had a Ford to fix... would you...

    Tell me... if you had a Ford to fix... would you try to do it from a Chevy manual?

    If you want to learn C... learn C... not C++.

    (Yes, they're two completely different things)
  24. Welllll... you could put on your glasses, make a...

    Welllll... you could put on your glasses, make a nice cup of coffee and sit to do a little reading.

    Or... you could get started on it, get the project as far as you can... then post your code and...
  25. Replies
    18
    Views
    1,977

    What compiler are you using... If it's not...

    What compiler are you using...

    If it's not going past 16 bits I'm guessing you're using some old DOS version of Turbo C... which has been obsolete for more than a decade.

    Grab a newer...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4