Right, so I am trying to make a similar program to the one given in the second tutorial on this site:

Code:
#include <iostream>	

using namespace std;
		
int main()                            // Most important part of the program!
{
  int age;                            // Need a variable...
  
  cout<<"Please input your age: ";    // Asks for age
  cin>> age;                          // The input is put in age
  cin.ignore();                       // Throw away enter
  if ( age < 100 ) {                  // If the age is less than 100
     cout<<"You are pretty young!\n"; // Just to show you it works...
  }
  else if ( age == 100 ) {            // I use else just to show an example 
     cout<<"You are old\n";           // Just to show you it works...
  }
  else {
    cout<<"You are really old\n";     // Executed if no other statement is
  }
  cin.get();
}
However, mine is about which maths set at school you are in (sad I know but I could think of nothing better). Anyway, something seems to be incorrect here:

Code:
#include <iostream>

using namespace std;

int main()
{
 int mathsset;
 
 cout<<"Welcome to maths set opinionator v.1.0.\n\n";
 cout<<"Enter the number of your maths set from one to seven and hit ENTER: ";
 cin>> mathsset;
 cin.ignore();

 if ( mathsset = 1,2 ) {
              cout<<"Congratulations, you are a maths genius!\n";
              }
              
 else if ( mathsset = 3,4,5 ) {
                    cout<<"Not bad, but you could be better.\n";
                    
                    }
                    
 else if ( mathsset = 6,7 ) {
                    cout<<"Now that's just plain rubbish.\n";
                    
                    }
                    
 else if ( mathsset < 1 ) {
                    cout<<"This is not a valid maths set number.\n";
                    
                    }
                    
 else if ( mathsset > 7 )
                    cout<<"This is not a vaild maths set number.\n";
                    }

        cin.get()            

}
I want the program to say something positive, be it anything, when the person is in the top two sets, average when in the three middle ones, and bad when in the last two. If someone enters a higher or lower number then there are sets, I want it to say "This is not a valid maths set number".

My C++ compiler, Dev C++, says this when I try to compile and run:

"expected constructor, deconstructor or type conversion before " . " token"

"expected "," or ";" before "." token"

"expected declaration before "}" token"

I don't really understand this expect the second one.

I have analysed the cprogramming code shown at the start and looked for differences, but can't find any. I have also read the tutorial over and over again.

Help anyone?