Search:

Type: Posts; User: snafu

Search: Search took 0.00 seconds.

  1. Replies
    25
    Views
    2,910

    yea sure...here is the finished code ...

    yea sure...here is the finished code



    #include <stdio.h>
    #define TRUE 1
    #define FALSE 0


    typedef struct node
  2. Replies
    25
    Views
    2,910

    hey guys...thanks for all ur help...i finally...

    hey guys...thanks for all ur help...i finally finished the program...i made a compare function, and was also able to pad it with 0's properly...turned out real well.
  3. Replies
    25
    Views
    2,910

    how can i compare two linked lists?? i've been...

    how can i compare two linked lists?? i've been trying to write a function like that but didnt see how it was possible
  4. Replies
    25
    Views
    2,910

    alrite...after tons of hours of working on this...

    alrite...after tons of hours of working on this damn program...i got everything working except a couple of cases. basically...if i enter two integers which have the same number of digits, and also...
  5. Replies
    25
    Views
    2,910

    alrite...i padded it with 0's, but now the...

    alrite...i padded it with 0's, but now the problem that i'm having is that its adding to the end of the list...so if i put in two integers like 12345 and 1...it makes 1 = 10000 instead of 00001. ne...
  6. Replies
    25
    Views
    2,910

    the above is code for padding the numbers with...

    the above is code for padding the numbers with 0's where necessary rt? i put it in properly, but i'm still having the same problems i mentioned before.
  7. Replies
    25
    Views
    2,910

    i have written a subtract function with the...

    i have written a subtract function with the borrowing thing included, but right now it works only if both the integers entered have the same number of digits, and the first number is larger than the...
  8. Replies
    25
    Views
    2,910

    how do i subtract each digit by the other...

    how do i subtract each digit by the other digit...and although i get the concept of borrowing logically, i'm not able to figure out how to put it in the program
  9. Replies
    25
    Views
    2,910

    yea...this is homework. there isnt any required...

    yea...this is homework. there isnt any required way that i have to do it except for storing the integers using linked lists, i think the subtraction can be done any way i want. what would be an...
  10. Replies
    25
    Views
    2,910

    This is what i had in mind when i was trying to...

    This is what i had in mind when i was trying to make the subtraction function. but how do i implement the borrowing of a digit and do the subtraction digit by digit...i'm confused
  11. Replies
    25
    Views
    2,910

    lol...well that was an interesting way of giving...

    lol...well that was an interesting way of giving me options. as for the display of the numbers, i just displayed the two ints for making sure they were getting stored properly...the actual output...
  12. Replies
    25
    Views
    2,910

    i'm having trouble with linked lists

    Hey guys. this is my first post. i have to write a program that takes the input of two integers and then subtracts the second from the first and displays this difference. The catch is that the...
Results 1 to 12 of 12