본문 바로가기

카테고리 없음

copy constructor - why const class & format?

#include "stdafx.h"

#include <iostream>

#include <string>


using namespace std;


void PrintString(const string &str)

{

cout << str << endl;

return;

}


int main()

{

PrintString("String");


return 0;

}