two parameter in a constructor

This is a discussion on two parameter in a constructor within the C++ Programming forums, part of the General Programming Boards category; what is the syntax for set and get when you want to initialize 2 private string in a constructor?...

Ok heres my program, whats wrong with it?Its an exercies from C++ How to program 5e.I've just patterned it from the examples and I havent fully grasped the concept yet.So i dont fully understand what I did.

Note that by giving the "get" functions in your class allows users to write functions like displayMessage(). Now, that could've just as well been written into the class, I only wanted to illustrate how that works and also wanted you to see passing an object by reference. The point of pass-by-reference is to stop copying of an object as it's passed by simply giving it's memory address ( which is what the "&" does - it requests the refence to that object, in this case "sampleCourse" ).

Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

Yes...i know.Im not asking for the answer just the correct syntax.I just showed the instructions because i cant explain it my self. Because like I said I havent fully grasped the concept yet. but I would appreciate it if you can explain it to me, maybe use a analogy - thats what my instructor would do but im in awol. So I guess you could be a substitute? please