I'm trying to create a pointer to a string, so that I can pass it to a function and that function can do a load of funky things to that string. Note that I don't want to simply pass a copy of a string to the function. I've tried various things with no luck, any ideas?
Here is some code that should demonstrate what I am trying to do:
#include <iostream>
#include "string"
using namespace std;
void TestFunction(string * sText)
{
cout << sText << "\n";
}
void main(void)
{
string * Pointer = "Text";
TestFunction(Pointer);
int Blank;
cin >> Blank;
}