Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
928 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
using namespace std;
class mobile {char name[10];char model[10];int price;
public:
mobile() {}
mobile(char n[], char m[], int p) {
strcpy_s(name, n);
strcpy_s(model, m);
price = p;}
void print() {cout << "name is " << name << endl;
cout << "model is " << model << endl;
cout << "price is " << price << endl;}
~mobile() {cout << "object destructed\n";}};
void main(){mobile M1("nokia" "2014", 2000);}