Hello all! Forgive me I am new so I'm not sure how to format posts.
I'm doing a simple program to calculate the cost of a meal, tax, tip, and total and I've checked it 800 times and I cannot seem to find the error it is speaking of?
Could someone help me?
1 2 3 4 5
p1.cpp:118: error: expected constructor, destructor, or type conversion before '<<' token
p1.cpp:120: error: expected constructor, destructor, or type conversion before '<<' token
p1.cpp:122: error: expected constructor, destructor, or type conversion before '<<' token
p1.cpp:123: error: expected unqualified-id before "return"
p1.cpp:124: error: expected declaration before '}' token
Yes, this is all of the code. I copied the error message from my compiler screen and retyped the code when I posted this. So that's why the line numbers don't match up.
If it looks like nothing is wrong then why isn't it compiling?