Convert infix notation to postfix notation
Submitted By:
WEBMASTER
Rating:





(
Rate It)
/*
MAIN.C
Rex Jaeshke, "C Users Journal" mach 92.
L?nkning: MAIN.C STACK.C INTOPOST.C
*/
/* convert infix notation to postfix notation */
#include <stdio.h>
main()
{
char infix_str[200];
char postfix_str[200];
void intopost(const char *infix, char *postfix);
while (1) {
printf("Enter infix: ");
if (*gets(infix_str) == '\0')
break;
intopost(infix_str, postfix_str);
printf(" postfix: %s\n", postfix_str);
}
return 0;
}
/* Fil Slut : MAIN.C */