#include <iostream> using namespace std; void changString(string &s){ s = "C++ 참조"; } int main() { string str = "Hello!"; changString(str); cout<< str <<endl; return 0; }
To embed this project on your website, copy the following code and paste it into your website's HTML: