You are viewing a single comment's thread. Return to all comments →
using namespace std;
class Student{
int total_students;
int fir, sec, thr, four, five; public: int totalscore; // void setTotal_stu(){ // cin>>total_students; // } // void getTotal_stu(){ // cout<>fir>>sec>>thr>>four>>five; } void getScore(){ cout< };
int main() { int totstu; cin>>totstu; Student obj[totstu]; for(int i=0;i
Seems like cookies are disabled on this browser, please enable them to open this website
Classes and Objects
You are viewing a single comment's thread. Return to all comments →
include
include
include
include
include
using namespace std;
class Student{
int total_students;
int fir, sec, thr, four, five; public: int totalscore; // void setTotal_stu(){ // cin>>total_students; // } // void getTotal_stu(){ // cout<>fir>>sec>>thr>>four>>five; } void getScore(){ cout< };
int main() { int totstu; cin>>totstu; Student obj[totstu]; for(int i=0;i