Showing posts sorted by relevance for query cpp. Sort by date Show all posts
Showing posts sorted by relevance for query cpp. Sort by date 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; }