Link to home
Start Free TrialLog in
Avatar of fsharer
fsharer

asked on

Adding to pointer

How would I add 2 pointers together?

this is what i have:
String *msg = "LIST|" + userList() + "\r\n";

I have looked for refrences to adding pointers on google but really couldnt find any that I understand. Would someone explain to me how I would go about adding 2 pointers?

String *userList()
{
}
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Try with:
String *msg = "LIST|" + userList();
msg += "\r\n";
Avatar of fsharer
fsharer

ASKER

Still is giving me the same error, but also is telling me the right operand is illegal, and can not perform pointer arithmetic on __gc pointer String
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fsharer

ASKER

Thanks, I figured it out yesterday, and I was going o confirm today, and made the confirmation!