Search:

Type: Posts; User: kbat82

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    18
    Views
    3,507

    yeah, but why does that mean more power?

    yeah, but why does that mean more power?
  2. Thread: Help with Dutch

    by kbat82
    Replies
    7
    Views
    6,921

    lol, I guess I learned a valuable lesson here :p...

    lol, I guess I learned a valuable lesson here :p

    Mario, have you been here:

    I love Portugal, I was there this summer. I went to Lisboa then took a bus to Oporto.
  3. Thread: Help with Dutch

    by kbat82
    Replies
    7
    Views
    6,921

    well, it's a start...they look correct haha....

    well, it's a start...they look correct haha. Check the library and/or bookstore.

    try randomly messaging people from the netherlands on some random social networking site haha.

    I have a friend...
  4. Thread: Help with Dutch

    by kbat82
    Replies
    7
    Views
    6,921

    the best i can do is: click here!...

    the best i can do is: click here!
  5. Replies
    16
    Views
    12,664

    class void_main best joke name i could think ...

    class void_main

    best joke name i could think of at this hour.
  6. Replies
    4
    Views
    2,673

    solved!

    Yea, it wasn't so difficult I suppose. I made it general for any base, but I don't know how all the number systems actually work. I guess as long as they follow the same rules as hex then this would...
  7. Replies
    4
    Views
    2,673

    Well, I have base 2, but it's 2am so I'll work on...

    Well, I have base 2, but it's 2am so I'll work on base 3 tomorrow :p



    void to_binary(unsigned long num, int base) {
    /* recursive function */

    int remainder;

    remainder = num % 2;
  8. Replies
    4
    Views
    2,673

    base conversions

    Is it possible to have one algorithm to convert to any base (at least 2-12) starting from base 10, or will i need a separate one for each base?
  9. Replies
    3
    Views
    1,037

    learn C!! it all depends on what you want to...

    learn C!!

    it all depends on what you want to do though. Which is what??

    anyway, I am learning c right now using this book:
    ...
  10. Thread: recursion...

    by kbat82
    Replies
    2
    Views
    1,736

    solved

    yatta! it only took me FOREVER, but I figured it out all on my own. isn't it a proud feeling? Using a function made it so much easier. Any advice?



    //8:Redo exercise 7, but this time use a...
  11. Thread: recursion...

    by kbat82
    Replies
    2
    Views
    1,736

    what do you think?

    can't seem to grasp this. maybe I could use a pointer for the count variable?



    //8:Redo exercise 7, but this time use a recursive function.

    #include<stdio.h>

    double power(double n, int p);
  12. Thread: recursion...

    by kbat82
    Replies
    2
    Views
    1,736

    recursion...

    really makes my brain sore!
  13. Replies
    2
    Views
    3,323

    haha Dino, I don't think he read it.

    haha Dino, I don't think he read it.
  14. Replies
    9
    Views
    2,922

    But you don't have to do it the way MK27 wrote....

    But you don't have to do it the way MK27 wrote. Handing in an assignment using stuff that hasn't been covered in class might hurt your score(Ask the instructor). You can do this assignment other...
  15. Replies
    9
    Views
    2,922

    printf("Birth Of Date:\n"); Shouldn't it be...

    printf("Birth Of Date:\n");

    Shouldn't it be Date of birth? :p

    Have you learned about arrays in class yet? That's what youre missing.
  16. Thread: Please Help Me

    by kbat82
    Replies
    5
    Views
    1,430

    haha

    haha
  17. Thread: Please Help Me

    by kbat82
    Replies
    5
    Views
    1,430

    I think he wants you to write the code that...

    I think he wants you to write the code that provides the output given.


    Edit: patzjerk, read up on 'for loops', if statements, printf and scanf.
  18. Replies
    5
    Views
    1,021

    thanks, but whew...too advanced for me at this...

    thanks, but whew...too advanced for me at this point. Hopefully I will understand all that in a couple of months.
  19. Replies
    5
    Views
    1,021

    c style (beginner)

    I have this assignment:



    I was wondering which method of the two below is preferred (red or green). They both tested fine, but is one better than the other? Would one be faster than the other,...
  20. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    I think you are right. It's not for a class, so I...

    I think you are right. It's not for a class, so I dont have to worry about marks. fgets() is chapter 13 and im on chapter 7, so I think this would be good enough for what I know. It asks me to redo...
  21. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    i will try a different approach and post again...

    i will try a different approach and post again later.
  22. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    or maybe not, but it's a step in the right...

    or maybe not, but it's a step in the right direction lol

    i guess 6.3 would still be an even number huh...damn
  23. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    I think this pretty much fixes everything :) ...

    I think this pretty much fixes everything :)


    #include<ctype.h>
    #define EVEN 2
    int main(void) {
    float num;
    int even, odd;
    float even_avg, odd_avg;
    even = even_avg = odd =...
  24. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    ah, so the .5 isnt even processed until the next...

    ah, so the .5 isnt even processed until the next time around. the 6 makes it through the loop. I didn't know it did that!
  25. Thread: Code Error

    by kbat82
    Replies
    13
    Views
    2,934

    Can I assume you don't use windows then? So...

    Can I assume you don't use windows then?

    So it just truncates the number and breaks from the loop.I guess I need another way to figure out if the number is even or odd than using &#37;.

    What did...
Results 1 to 25 of 35
Page 1 of 2 1 2