You are viewing a single comment's thread. Return to all comments →
using namespace std; class student{ private: int marks,b,gre=0; public: void sum(int n) {b=n; int ar[b]; for(int i=0;i>marks; ar[i]+=marks; } } for(int i=0;i } cout<>n; obj.sum(n); return 0; }
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{ private: int marks,b,gre=0; public: void sum(int n) {b=n; int ar[b]; for(int i=0;i>marks; ar[i]+=marks; } } for(int i=0;i } cout<>n; obj.sum(n); return 0; }