yea sure...here is the finished code
#include <stdio.h>
#define TRUE 1
#define FALSE 0
typedef struct node
Type: Posts; User: snafu
yea sure...here is the finished code
#include <stdio.h>
#define TRUE 1
#define FALSE 0
typedef struct node
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.
how can i compare two linked lists?? i've been trying to write a function like that but didnt see how it was possible
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...
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...
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.
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...
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
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...
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
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...
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...