if statement help :)

I am having problems setting up an if statement for my level up system that I am creating currently. its kinda just to practice what I have been learning form youtube tutorials. if you know what too do please help and if you can please explain how and why what you did worked but its not necessary I think I could figure it out c++ 2010

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>

using namespace std;

int main()
{
	char divider;
	divider = '/';

	float max_experience_multiplier;
	max_experience_multiplier = 1.25;

	unsigned short int level;
	level = 1;

	unsigned long int experience;
	experience = 1;
	
	unsigned long int max_experience;
	max_experience = 100;
		
	cout << "your level is: ";
	cout << level;
	cout << endl;
	cout << "experience: ";
	cout << experience;
	cout << divider;
	cout << max_experience;

	if ( experience > max_experience );
	level + 1;

	if ( if experience > max_experience );
	max_experience * max_experience_multiplier;

	cin.get();
 	return 0;
}
I do not know what have to do the following statements

1
2
3
4
5
	if ( experience > max_experience );
	level + 1;

	if ( if experience > max_experience );
	max_experience * max_experience_multiplier;



but it is obvious that semicolons should not follow the if statements and inside parentheses there shall be an expression not other if statement,
oh haha I didn't even see that
xD
Topic archived. No new replies allowed.