Most likely you're trying to use a standard template class without including the header. Post the code.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,483
Solved Threads: 1,407
Skill Endorsements: 54
There's really too much wrong with that code to fix. I suggest you start over, this time compiling and testing as you go. As it is, it looks like you wrote it all before ever trying to compile.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,483
Solved Threads: 1,407
Skill Endorsements: 54
but as i asked initially, in general, what does the error " syntax error before `<' " mean?
well, in general, it means something used before the '<' symbol was sytactically incorrect(used incorrectly).
marinme
Junior Poster in Training
63 posts since Apr 2005
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
>what does the error " syntax error before `<' " mean?
You have syntax errors all over the place, but the first error is failure to terminate this line with a semicolon:
const int lateFee = 20
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,483
Solved Threads: 1,407
Skill Endorsements: 54
Hi,
Just to point out, those numbers in the syntax error report are line numbers inside the files. Look a few lines up or down of the cited line number for a hint.
For example,
1.... #include <iostream>
2.... #include <iomanip>
3.....using namespace std;
4.....
5.....const double APR = .1999;
6.....const double financeCharge = .0167;
7.....const int lateFee = 20
8.....
9.....
10....int main ()
11....{
12....
assign1.cpp:10: parse error before `int'
We see that there is a problem somewhere around line 10. Looking up a few lines, we see the statement lateFee = 20 but no semicolon (;)
The numbers are there to help you. It has been my experience that the numbers hint to problems above the line number. Also remember that one little bug can throw the whole soup down the drain... fix from top to bottom, and you can see from time to time that a whole mess of things get corrected by fixing one little part.
This is the art of debugging.
Christian
kc0arf
Posting Virtuoso
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
Skill Endorsements: 0