the constructor of cTest is called when a cTest object is created. You create a cTest object on line 12, the constructor is called outputting "test". You create another cTest object on line 13, the constructor is called outputting "test" again.
Lines 14 and 16 do nothing, as you're not acting on the object in any way.
class cTest {
public:
cTest() { std::cout << "test"; }
};
int main() {
cTest q1; // THIS line prints "test".
cTest q2; // THIS line ALSO prints "test".
q1; // THIS line does NOTHING.
std::cout << std::endl; // THIS line goes down one line
q2; // THIS line does NOTHING.
}
EDIT: Typo fixed (Accidentally wrote "lone" instead of "line")