Classes and Objects

  • + 0 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; }