class schools
{
public:
void stfatima(){
cout << " st fatimai s shiut" << endl;
public:
void stfatimaStudents(int a, int b,){
cout << " Amount of boys in school" << a << endl;
cout << " amount of girls" << b << endl;
int c = a + b;
cout << " amount of all together" << c << endl;
}
}
#include <iostream>
usingnamespace std;
class schools {
public:
void stfatima() {
cout << " st fatimai s shiut" << endl;
public: //!! why are you saying this again?
//!! C++ doesn't have nested functions, so you need the closing }
//!! for stfatima before this
void stfatimaStudents(int a, int b,) {
cout << " Amount of boys in school" << a << endl;
cout << " amount of girls" << b << endl;
int c = a + b;
cout << " amount of all together" << c << endl;
}
}
};
int main()
{
cout << " hi vergo";
}
ye and also it worked now. After I did all you described it made the errors I had lesser and then there was an error left so I looked at my code again and I found out I put a , after int b so thanks bro for ur help