Search:

Type: Posts; User: Tclausex

Page 1 of 14 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,939

    Start here Linked Lists in C Tutorial -...

    Start here Linked Lists in C Tutorial - Cprogramming.com

    The logic isn't any different. It's still FIFO. It still uses pointers to front and rear. Now you implement with dynamic nodes of data...
  2. Replies
    1
    Views
    984

    I'm stunned that you have a compiler that would...

    I'm stunned that you have a compiler that would turn this into an executable. Turn warnings on full.

    Your use of typedef is incomplete and your attempt to dereference tree.root will cause a...
  3. Replies
    3
    Views
    1,014

    Are you sure you understand the assignment?...

    Are you sure you understand the assignment? Because I have to say, this is one of the most useless assignments I've seen. User is forced to enter digits and commas as some kind of encoded message -...
  4. Replies
    9
    Views
    1,742

    Well, we can't see question 2. So, is the...

    Well, we can't see question 2.

    So, is the requirement to step through the entire range of resistance for each step in voltage - or to step through both at the same time, given that each is...
  5. Non-Commercial Software Development | Intel®...

    Non-Commercial Software Development | Intel® Developer Zone
  6. Thread: Jave to C

    by Tclausex
    Replies
    5
    Views
    923

    code...

    code

    math.h

    and write a function to convert degrees to radians?
  7. Replies
    4
    Views
    2,783

    Yes, just remove the c from the library name and...

    Yes, just remove the c from the library name and add .h

    So, include <ctype.h> -- not <cctype>
  8. Replies
    6
    Views
    1,225

    OK, but still when i = j = k = 501, the loops...

    OK, but still when i = j = k = 501, the loops execute and bulbs[k] is out of bounds;
  9. Replies
    6
    Views
    1,225

    I'm not sure why you conclude prime numbers would...

    I'm not sure why you conclude prime numbers would never be changed. 2, 3, 5... these are prime numbers and it's clear to see that they are turned on. And since you are traversing the whole array...
  10. I'm a fan of the Socratic method /shrug.

    I'm a fan of the Socratic method /shrug.
  11. Replies
    23
    Views
    2,843

    State-of-Origin-Code , County-of-Origin-Code ,...

    State-of-Origin-Code , County-of-Origin-Code , State-Destination-Code , Couny-Destination-Code , State Abbreviation , State Full Name , Number of Tax Returns , Number of Tax Exemptions (Claimed?) ,...
  12. Ummm.

    Ummm.
  13. Replies
    18
    Views
    2,704

    Posts like this always remind me of Joel...

    Posts like this always remind me of Joel Spolsky's article "The Perils of Java Schools"
  14. How does strlen() work? What is the integer...

    How does strlen() work?
    What is the integer value of the character '\0'?
    What is the integer value of 'a' - 'a' ?
  15. Well, let's see if I can explain it in the most...

    Well, let's see if I can explain it in the most universal sense



    if( predicate )
    consequent ;

    Here we execute the consequent, only conditionally. That is, only if the predicate is true....
  16. break is not needed for if-else because it's a...

    break is not needed for if-else because it's a branching decision. Either the if-consequent is executed, or the else-alternate is executed. With switch, the behavior is to fall through (which can be...
  17. Replies
    10
    Views
    894

    How can arr[i] be 'o' or 'O' AND 'h' or 'H' at...

    How can arr[i] be 'o' or 'O' AND 'h' or 'H' at the same time?
  18. Thread: hard problem

    by Tclausex
    Replies
    5
    Views
    942

    What rolls down stairs alone or in pairs Rolls...

    What rolls down stairs alone or in pairs
    Rolls over your neighbor's dog?
    What's great for a snack and fits on your back?
    It's Log, Log, Log!
  19. Replies
    8
    Views
    1,064

    I can only assume that you don't understand what...

    I can only assume that you don't understand what a return statement does.

    The return statement terminates the execution of a function and returns control to the calling function.

    So, do you...
  20. Replies
    8
    Views
    1,064

    Do you really think your loop is going to execute...

    Do you really think your loop is going to execute more than once?

    Unless a[] changes, it will always return the same value.
  21. Replies
    21
    Views
    2,715

    This student[j].first_name =...

    This


    student[j].first_name = malloc(sizeof(char) * MAX_CHARS_IN_NAME);
    student[j].last_name = malloc(sizeof(char) * MAX_CHARS_IN_NAME);


    is worse than this
  22. Replies
    12
    Views
    2,501

    Whoa. Your fundamental misunderstanding of...

    Whoa. Your fundamental misunderstanding of structs and how to use format strings with scanf functions is really killing you here.

    I'm not sure where you are getting the number 100 or 50, but...
  23. Replies
    12
    Views
    2,501

    Yes, and no. You'll need to use the negated...

    Yes, and no. You'll need to use the negated scanset instead of %s because you don't want the commas. %d will work as is, and you need literal commas after each specifier to eat up the comma. And a...
  24. Replies
    3
    Views
    1,085

    It varies depending on rounding rules of...

    It varies depending on rounding rules of course...


    float fl = 1.5;
    int rounded = floor( fl + 0.5f );


    If you need to use ceiling, I'm sure you can figure it out from here.
  25. Nope. u is a copy of y.x

    Nope.

    u is a copy of y.x
Results 1 to 25 of 336
Page 1 of 14 1 2 3 4