No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
code: def rpn(): list = [] while 1: x = raw_input(" ") if x in ["+","-","*","/","%"]: y=str(eval(list[-2]+x+list[-1])) list[-2:]=[y] elif x == "": break elif x == "=": print y else: list.append(x) How can i modify my rpn calculator in order to: 1)accept random number x = random number e.g x … |
|
Re:
Hey everyone, I'm attempting to write a program that will contain multiple C-DLLs. I currently have 2 structs: [CODE] struct CDLL_Node { char value[30]; struct CDLL_Node *next; struct CDLL_Node *prev; }; typedef struct CDLL_Node node; struct listHolderRecord { char label[30]; struct listHolderRecord *next; node *headAddr; }; typedef struct listHolderRecord listHolder; … |