Please indent the code properly otherwise it is too hard for others to read your code.
Hmm,that's odd as there are a couple(or more) of syntax errors in the code.Compile with VC seems OK
should probably be,Code:void InitStack(SqStack *&s)
Also,function trans() takes only one argument instead of two.Code:void InitStack(SqStack *s)
and order of certain statements in main() is probably wrong.[Normal flow of execution is from top->bottom in structural programming].
Use of gets() should be avoided so is void main().