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; }
1 Answer
+ 4
Look at lesson 53.1, therein constructors is covered.