Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c x 37
Member Avatar for ilovephil
Member Avatar for ilovephil

guys im using reverse polish notation in link list my problem is every time i enter the OPERATOR (+) it will add and that operator display as '0' im having trouble in that operator i need to display it as blank >_< help me guys #include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define …

Member Avatar for ilovephil
0
180
Member Avatar for ilovephil

how can i make the condition if(isalpha(str)) always said that it is invalid conversion from char to int whenever i use if(isalpha(i)) does not print the "That is alpha" help me pls? #include <stdio.h> #include <stdlib.h> #include<ctype.h> #include<string.h> int main () { int i; char str[256]; printf ("Enter a number: …

Member Avatar for Adak
0
187
Member Avatar for ilovephil

how to compare str and the + sign LINE 15 please help me #include <stdio.h> #include <stdlib.h> #include<ctype.h> #include<string.h> int main () { int i; char str[256]; printf ("Enter a number: "); gets ( str ); i = atoi ( str ); if(isalpha(str[256])) { */if(strcmp(str,'+')==0) { printf("That is a plus …

Member Avatar for Adak
0
118
Member Avatar for ilovephil

Hi this is RPN i would like to ask why the free(after) does not remove the after..im still confuse but whenever i print the value of after it is the last node but when im trying to remove it doesn't. #include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> #define p printf #define s scanf …

Member Avatar for savoie
0
126
Member Avatar for ilovephil

Why i always get the address of the number?? 2295367 >_< #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf #include<ctype.h> struct node { int data; struct node *link; };typedef struct node *nodepointer; void push(nodepointer &top,int number) { nodepointer newnode,temp; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->data=number; newnode->link=NULL; if(top==NULL) { top=newnode; } else { temp=top; …

Member Avatar for histrungalot
0
172
Member Avatar for ilovephil

how can i use reverse polish notation in link list using stack i need to reverse the numbers>_< #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf struct node { int data; struct node *link; };typedef struct node *nodepointer; void push(nodepointer &top,int num) { nodepointer newnode; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->data=num; newnode->link=top; top=newnode; …

Member Avatar for BobS0327
0
251
Member Avatar for ilovephil

Any idea how to make restrictions in link list. im still confuse what will i need to make restrictions?? i know the isdigit isalpha etc. for example i can only enter DIGIT,

Member Avatar for ilovephil
0
275
Member Avatar for ilovephil

im still confuse in RPN will i use insert at bottom of stack or front and then reverse it? cause my project say's that insert at the bottom of the stack..somebody help me pls

Member Avatar for BobS0327
0
103
Member Avatar for ilovephil

i need that every user input is character it will ask again to enter number until the user's input is correct.my program does not seems to apply the proper condition any help guys? #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf #include<ctype.h> struct node { int data; struct node *link; …

Member Avatar for zeroliken
0
123
Member Avatar for ilovephil

How to add the numbers between nodes example. input 1*2+3 first 2 and 3 will add and it will become 1 5 nodes then 1 * 5 = 5 then node will becaome 5 only this is my sample program #include<stdio.h> #include<stdlib.h> #define p printf #define s scanf struct node …

Member Avatar for begame
0
157
Member Avatar for ilovephil

How to add number in link list using stack POP AND PUSH example i have 1+ 2+3 input the last two operands will first do the addition example and it becomes 1 5 and i put + and will become 6 how? any idea?

0
53
Member Avatar for ilovephil

How can i store strings in my program. #include<stdio.h> #include<stdlib.h> #include<string.h> #define p printf #define s scanf struct node { char nbook; struct node *next; }; typedef struct node *nodepointer; void addbook(nodepointer &head,char book) { nodepointer newnode; newnode=(nodepointer)malloc(sizeof(struct node)); newnode->nbook=book; newnode->next=head; head=newnode; } void display(nodepointer head) { if(head==NULL) { p("\nNothing …

Member Avatar for Ancient Dragon
0
207
Member Avatar for ilovephil

As you can see this is my program.my problem is how to store strings in my program I can store only single character.. any one can help me? =( #include<stdio.h> #include<stdlib.h> #include<string.h> #define p printf #define s scanf struct node { char nbook; struct node *next; }; typedef struct node …

Member Avatar for Banfa
0
134
Member Avatar for ilovephil
Member Avatar for VernonDozier
0
57
Member Avatar for ilovephil

can i return a value using CHAR DATA TYPE? NOT INT? ex.int data; int value(ex.data) return data; how about this ex.char name; int(ex.name) return name; possible or not?

Member Avatar for ilovephil
0
80