0

Can someone help me with constructors? C++

#include <iostream> #include <string> using namespace std; class Painting { public: //define the constructor }; int main() { string name; cin >> name; Painting painting(name); return 0; }

7th Dec 2022, 1:03 AM
Brian
1 Answer
+ 4
Look at lesson 53.1, therein constructors is covered.
7th Dec 2022, 1:26 AM
Ipang