Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- class speciality
- {
- private:
- char name[20]={ 'I'};
- int man=36;
- int woman=34;
- int average_score=4;
- int totalStudents=man+woman;
- public:
- void input_speciality();
- void output_speciality()
- {
- char name[20]={ 'I'};
- cout << name;
- int man=36;
- cout << man;
- return man;
- return woman;
- return average_score;
- };
- void output_score(){
- if(average_score=2)
- {
- cout<<"Slab 2"<<endl;
- }
- else if(average_score=3)
- {
- cout<<"Sreden 3";
- }
- else if(average_score=4)
- {
- cout<<"Dobur 4";
- }
- else if(average_score=5)
- {
- cout<<"Mnogo dobur 5";
- }
- else if(average_score=6)
- {
- cout<<"Otlicen 6";
- }
- else {
- cout<<"ERROR!!!number is not between 2 & 6";
- }
- };
- bool compare_num(int man, int woman)
- {
- if(man>woman)
- {
- return true;
- }
- else
- {
- return false;
- }
- };
- int number_students()
- {
- {
- return totalStudents;
- }
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement