I am looking for an example program that modifies a string inside my exe.
I work with C ++, Visual Studio on Windows.
I searched for working examples on Windows, but I can not find any working code.
I need a simple code that will ask the user for a string:
string strTest = "";
(if strTest != "")
{
cout << "Modified: " << strTest << endl;
}
cin >> strText;
And the code should be rewritten:
string strTest = "";
To dial the specified user:
string strTest = "SomeStringFromUser";
How in C ++ do you change the string (from the string strTest = ") to the string that the user entered? (For example strTest =" foo ")?
source
share