Why does the compiler complain if I attempt to use a vector as a base container for a stack of double values?
The declaration is:
stack
The VC++ compiler says
stack
//before identifier 'myStack'
The Borland compiler identifies the line where the error occurs but provides these (unhelpful)error messages:
10: Undefined symbol 'myStack' in function main()
10: Cannot generate template specialization from '
vector
12: Improper use of typedef 'stack
in function main()
12.: Statement missing ; in function main()
Each compiler is using the “maximum munch” algorithm for collecting input characters to make tokens. This means the compiler collects the most symbols possible that make a legal token in the C++ language. The closing > for int and the closing > for int, vector
You might also like to view...
VGA type video ports are
A) 25-pin male connectors B) 9-pin male connectors C) 15-pin female connectors D) 6-pin DIN connectors
Recently the central area of North Carolina was split into two area codes by BellSouth. The old area code was 910 and the new area code is 336. Some people had to change their area code to 336 and some kept the 910 area code. Speculate about why this was done.
A. It was done to double the telephone numbers in the central area of North Carolina. B. It was done to improve quality of communication in the central area of North Carolina. C. It was done to triple the telephone numbers in the central area of North Carolina. D. It was done to halve the telephone numbers in the central area of North Carolina. E. It was done to multiply by ten the telephone numbers in the central area of North Carolina.