Vectors Problem

Hello, I just started learning vectors recently and i just wanted to test my skills... I wanted to make a simple programme where you type in the money u have put away for savings and each time u enter amount, it's stored in the memory and when you're finished it shows u a total.

I wrote the code which i'm not sure is right. The code doesnt want to compile and the compiler tells me that there are 2 syntax errors. I dont think that's the problem though cause for me there no ';' missing at all... :S

1>c:\users\mashikag\documents\visual studio 2008\projects\savings\savings\file.cpp(16) : error C2143: syntax error : missing ';' before ')'
1>c:\users\mashikag\documents\visual studio 2008\projects\savings\savings\file.cpp(16) : error C2143: syntax error : missing ';' before ')'

Here's the source code: http://pastebin.com/kVvDm8Wa

I'd apreciate it if anyone could help me.
Last edited on
It would help if you pasted the code here. Anyway:
for (a=0, a<b, b++, a++)
should be:
for (a=0; a<b; b++, a++)
Thanks alot. How could i missed that out :S yesterday i spent like an hour just looking at it and trying to find the solution... O_o I really apreciate it!
Topic archived. No new replies allowed.