OK listen, the -> syntax is just a shortcut for "(*myvar)."
And if you know what * is, then you know it dereferences a pointer. So in short, it's the same as using "." for accessing members, but for pointers instead.
Then not that this is wrong and bad:
The proper code should be:Code:char* test = "My name is John and I love to surf"
Because string literals are constant.Code:const char* test = "My name is John and I love to surf"
And I'm pretty sure you're using Visual Studio, so I'd also suggest you take a look at safer functions such as strcpy_s and the like.

