/in/foo.cc: In constructor 'Stu::Stu(std::__cxx11::string, int, int, std::__cxx11::string, std::__cxx11::string, int)':
/in/foo.cc:7:9: warning: 'Stu::d' will be initialized after [-Wreorder]
string d, e, f;
^
/in/foo.cc:5:6: warning: 'int Stu::a' [-Wreorder]
int a, b, c,total;
^
/in/foo.cc:9:2: warning: when initialized here [-Wreorder]
Stu(string name, int sc, int jsc, string ic, string iw, int num) :d(name), a(sc), b(jsc), e(ic), f(iw), c(num) {}
^~~
/in/foo.cc:7:15: warning: 'Stu::f' will be initialized after [-Wreorder]
string d, e, f;
^
/in/foo.cc:5:12: warning: 'int Stu::c' [-Wreorder]
int a, b, c,total;
^
/in/foo.cc:9:2: warning: when initialized here [-Wreorder]
Stu(string name, int sc, int jsc, string ic, string iw, int num) :d(name), a(sc), b(jsc), e(ic), f(iw), c(num) {}
^~~