/ / The following is my source program #include
#define size 100
Class Stack {Int Stck [Size]; Int ToS; Public: Void INITS (); Void Push (INT I); int Pop (void);
Stack :: inits {// line 15 TOS = 0;}
Stack :: push {if (i == size) {cout << "stack is full; return 0;} stck [TOS] = i; TOS ;}
Stack :: pop {if (tos == 0) {cout << "stack overflow!"; return 0;} TOS -; RETURN STCK [TOS];
Void main () {Stack Stack1, Stack2;
Stack1.inits; stack2.inits;
Stack1.push (1); stack2.push (2);
Stack1.push (3); stack2.push (4);
COUT << stack1.pop << ""; cout << stack1.pop << "
COUT << stack2.pop << "; cout << stack2.pop <<"
Return 0;} The following is an error message: ------------------ CONFIGURATION: Exam1 - Win32 Debug --------------- ---- Compiling ... exam1.cppd: /c/exam1.cpp (15): Fatal Error C1001: Internal Compiler Error (Compiler File 'Msc1.cpp " Visual C Help Menu, or Open The Technical Support Help File for More InformationError Executing Cl.exe.
Exam1.exe - 1 Error (s), 0 Warning (s)