Search:

Type: Posts; User: GL.Sam

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    1,935

    No error checking for fscanf(). That's the reason...

    No error checking for fscanf(). That's the reason why it loops indefinitely, I assume.
  2. Replies
    3
    Views
    3,154

    Why is multiposting necessary?

    Why is multiposting necessary?
  3. Thread: Program help

    by GL.Sam
    Replies
    18
    Views
    4,995

    http://cboard.cprogramming.com/member.php?u=38563&...

    http://cboard.cprogramming.com/member.php?u=38563&tab=visitor_messaging#vmessage334
    Umm, that's nice. "I'm a beginner so I should use it as an excuse." You will not dictate what I need and what I...
  4. Thread: Program help

    by GL.Sam
    Replies
    18
    Views
    4,995

    Oh. My. God. Will you ever actually think...

    Oh. My. God.

    Will you ever actually think before posting?
  5. Thread: Program help

    by GL.Sam
    Replies
    18
    Views
    4,995

    Also it could overall be rewritten in less...

    Also it could overall be rewritten in less obvious, but much more compact way:


    if (speed >= 65)
    /* calculate fine for this speed */
    else if (speed >= 56)
    /* we already know that value is...
  6. Thread: Program help

    by GL.Sam
    Replies
    18
    Views
    4,995

    claudiu >else Then this will execute not only...

    claudiu
    >else
    Then this will execute not only for speed greater/equal to 65, but also for one that is lower than 46. One more if needed I suppose.
  7. Thread: Macro problem

    by GL.Sam
    Replies
    6
    Views
    4,351

    >the problem ceases to exist I really have no...

    >the problem ceases to exist
    I really have no idea why does it cease to exist. As to my knowledge, using sizeof with a typename always requires putting it in parentheses.
  8. Replies
    14
    Views
    1,489

    Actual value you read are not get changed in any...

    Actual value you read are not get changed in any way, if you up to the range limits of course. What may change is how it is displayed.

    So, your 2.23 would look differently when used with different...
  9. Replies
    6
    Views
    2,066

    Johaneson I already gave you a qouted link about...

    Johaneson
    I already gave you a qouted link about your issue. What else do you want really?

    >THIS AIN'T NO RUSSIAN BOARD!!!
    Sorry :)
  10. Replies
    15
    Views
    4,660

    I've found it :D #include #include...

    I've found it :D

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

    int main(void)
    {
    int a, b, temp;

    scanf("%d %d", &a, &b);
  11. Replies
    15
    Views
    4,660

    >3. Program to swap two numbers without using...

    >3. Program to swap two numbers without using assignment operator in any part of the program.
    Okay, the only thing that came into my mind is to read values from file/stdin, then make a temporary...
  12. Replies
    15
    Views
    4,660

    In order to answer the first two questions you...

    In order to answer the first two questions you need to know how float is represented internally. Here's a handy link:
    Clusty Search ยป ieee floating point

    >3. Program to swap two numbers without...
  13. Thread: please help

    by GL.Sam
    Replies
    4
    Views
    962

    My eyes are bleeding.

    My eyes are bleeding.
  14. Replies
    6
    Views
    2,066

    I'm wondering how many times this question arose...

    I'm wondering how many times this question arose around.

    Привет, бро, кстати. :)
  15. Replies
    7
    Views
    6,393

    Ummm... Ohhh... To say that I'm astounished means...

    Ummm... Ohhh... To say that I'm astounished means to say nothing. Would you be so kind not to do such a... thing anymore? The only thing that I can suggest is to reset file position indicator to...
  16. >int binary_search(int[],int[]); This.

    >int binary_search(int[],int[]);
    This.
  17. Replies
    7
    Views
    6,393

    So to achieve your goal you could use either...

    So to achieve your goal you could use either buffering contents of the file to a temporary storage, applying tolower() to it and then rewriting the whole file, or updating the file just-in-time....
  18. Replies
    1
    Views
    928

    Technically speaking, this >double **array is...

    Technically speaking, this
    >double **array
    is not a real two-dimensional array, it just behaves like that giving proper memory allocations. So,
    >function(what to write?)
    would look like
    double...
  19. Replies
    3
    Views
    2,881

    The idea is somewhat close to that of binary...

    The idea is somewhat close to that of binary search, but here no part of an array should be ignored, that's why two statements of recursion are used. Try to trace this algorithm in debugger or even...
  20. Replies
    7
    Views
    6,393

    I don't quite understand what help do you need....

    I don't quite understand what help do you need. tolower() is a standard function from <ctype.h> header. If you want to apply it to an arbitrary string you could do something like:

    void...
  21. Replies
    27
    Views
    7,791

    >I'm awaiting your public apology to Salem....

    >I'm awaiting your public apology to Salem.
    >jumped into a useless argument
    Without this argument I would have still been convinced in my view and I'm thankful for that. It wasn't useless. I'm just...
  22. Replies
    27
    Views
    7,791

    Salem Thank you for making this one clear. It...

    Salem
    Thank you for making this one clear. It was much better than quzah's meaningless flame. I'd vote for adding this topic to the FAQ board or something.
  23. Replies
    27
    Views
    7,791

    >printf("fail"); --- >I didn't mean that sole...

    >printf("fail");
    ---
    >I didn't mean that sole printf() without a newline or fflush() will do. I just wanted to extend this list to include situations of upcoming input.

    You perhaps should learn...
  24. You probably want to read about typedef facility...

    You probably want to read about typedef facility and how to use dynamic memory with structures properly, and try lesser examples to get used to them. Also I'd suggest reading a sticky thread about...
  25. You got some serious messing with names here.

    You got some serious messing with names here.
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4