메뉴 건너뛰기

연세 YWAM 계좌번호 : 신한은행 110-293-670952 이미나

만우절인가...

정수 2006.04.01 01:55 조회 수 : 1558

컴파일러도 거짓말하나보다;;
무슨 에러가 저리도 많이 나는거야;;;
몇 줄 짜지도 않았는데 -.T)

cd /home/toracle/Class Material/DS/HW/assignment3/
make -k
g++ ArrayStack.cpp -c
ArrayStack.h:7: error: expected class-name before '{' token
ArrayStack.h: In constructor 'ArrayStack<Object>::ArrayStack(int)':
ArrayStack.h:14: error: 'topptr' was not declared in this scope
ArrayStack.cpp: At global scope:
ArrayStack.cpp:4: error: 'template<class Object> class ArrayStack' used without template parameters
ArrayStack.cpp: In function 'void push(const Object&)':
ArrayStack.cpp:5: error: there are no arguments to 'isFull' that depend on a template parameter, so a declaration of 'isFull' must be available
ArrayStack.cpp:5: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
ArrayStack.cpp:6: error: 'pile' was not declared in this scope
ArrayStack.cpp:6: error: 'topptr' was not declared in this scope
ArrayStack.cpp: At global scope:
ArrayStack.cpp:12: error: 'template<class Object> class ArrayStack' used without template parameters
ArrayStack.cpp: In function 'Object& pop()':
ArrayStack.cpp:13: error: there are no arguments to 'isEmpty' that depend on a template parameter, so a declaration of 'isEmpty' must be available
ArrayStack.cpp:14: error: 'pile' was not declared in this scope
ArrayStack.cpp:14: error: 'topptr' was not declared in this scope
위로