there is an error on nokia word in the main , i can not solve it

طارق قطب 1 Reputation point
2020-12-06T02:43:49.923+00:00

include<iostream>

include<string>

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);}

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
873 questions
{count} votes