malloc
, free
)
struct
and of own Stack
object)
switch
statement)
enum
)
Makefiles
.
main.c
,
stk.c
,
mystring.c
,
cal.c
,
with their corresponding .h
header files.
Makefile
for your project.
1 - 2 - 3 * 4 ^ 5 * 6 / 7 ^ 2 ^ 2
infix: 1 - 2 - 3 * 4 ^ 5 * 6 / 7 ^ 2 ^ 2
postfix: 1 2 - 3 4 5 ^ * 6 * 7 2 2 ^ ^ / -
-8.677
2 * 4 + 3
infix: 2 * 4 + 3
postfix: 2 4 * 3 +
11.000
4 + 3 * 2
infix: 4 + 3 * 2
postfix: 4 3 2 * +
10.000
2 * (3 + 4)
infix: 2 * (3 + 4)
postfix: 2 3 4 + *
14.000
(3 + 4) * 2
infix: (3 + 4) * 2
postfix: 3 4 + 2 *
14.000
2 ^ 3 ^ 3
infix: 2 ^ 3 ^ 3
postfix: 2 3 3 ^ ^
134217728.000
3 * 2 ^ 5 - 1
infix: 3 * 2 ^ 5 - 1
postfix: 3 2 5 ^ * 1 -
95.000
1 + 2 * 3 ^ 4
infix: 1 + 2 * 3 ^ 4
postfix: 1 2 3 4 ^ * +
163.000
2 ^ 5 - 1
infix: 2 ^ 5 - 1
postfix: 2 5 ^ 1 -
31.000
q
postfix: 2 4 * 3 +
11.000
or
postfix: 4 3 2 * +
10.000
infix: 2 * 4 + 3
postfix: 2 4 * 3 +
infix: 4 + 3 * 2
postfix: 4 3 2 * +
Your code should be able to pass the resulting
postfix expression to your evaluation routine, which
should produce the correct solution.
2 ^ 3 ^ 3
infix: 2 ^ 3 ^ 3
postfix: 2 3 3 ^ ^
134217728.000
2 * (3 + 4)
infix: 2 * (3 + 4)
postfix: 2 3 4 + *
14.000
(3 + 4) * 2
infix: (3 + 4) * 2
postfix: 3 4 + 2 *
14.000
.tar
of your project 1 directory, complete with
a Makefile
and README
files.
See the tar
'ing instructions web page for further info on creating the tar
file.