Probably easy question - incredibly new

Write your question here.

1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <iomanip>

using namespace std;

int ProAverage = 75.26,
TestAverage = 52.31,
Final = 60.3425;

(ProAverage/100)*.35+(TestAverage/100)*.65


So, that's what I have, the error I'm getting is [Error] expected ')' before '/' token. I'm not a computer science major, I was forced to take this class because I needed to take a "gen ed" and I'm totally lost and this is only the second program. Can someone help? Thanks!
You should have semi-colons at the end of lines 6, 7, and 10 instead of commas.
Code goes inside functions, not just anywhere you want. You forgot to add a main function to put your code in.

The tutorial on this site is short, concise, and very easy to follow:
http://www.cplusplus.com/doc/tutorial/

I recommend trying things out in an online compiler:
http://ideone.com/ (select C++11)
http://coliru.stacked-crooked.com/ (use -std=c++11 or -std=c++1y)

This forum is fully ready to help you pass your class but be aware we don't solve homework for you ;)
Last edited on
Ah, okay. Thanks! Now when I hit Compile&Run, it comes back with a 'TestAverage' does not name a type.
I think you missed my post because we posted so close together.
Nevermind, I fixed that issue by declaring the other 2 lines by adding int. However, I'm still getting the error as before.
I think you missed my post because we posted so close together, again.
Okay, I apologize! I'm just not very good with these things. I'll look through the tutorial, thanks!
Topic archived. No new replies allowed.