Please indent the code properly otherwise it is too hard for others to read your code.
Compile with VC seems OK
Hmm,that's odd as there are a couple(or more) of syntax errors in the code.
Code:
void InitStack(SqStack *&s)
should probably be,
Code:
void InitStack(SqStack *s)
Also,function trans() takes only one argument instead of two.
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().