|
-
Jan 29th, 2012, 04:15 PM
#1
Thread Starter
New Member
adding totals?
hi im new to programming, started only a few days ago, so i don't know most of the definitions or jargon!
but iv got a a asisignment where i have to a daily total and add it to the weekly total if that makes sense?
basically
weekTotal = 0 + dailyTotal
now i know thats not the proper way beacause it resets each time. what i wana do is
weekTotal = weekTotal + dailyTotal
but i dont know how to do it! i read something online about using += to do it but when i do i get end of statement expected.
what do i do?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|