Showing posts with label CPP. Show all posts
Showing posts with label CPP. Show all posts
How to create Constructor in CPP

How to create Constructor in CPP

agyanadda
#include using namespace std; //create class class Student{ public: // A.s int id; //D.M string nm; // D.M //member function void insert(int i, string n){ id=i; nm=n; }