hi all,
I do not understand how i concatination of two string using pointer in c++.
please can you give sugestion how i implement..
thanks in advance

Get first pointer. Count size of string.
Get second pointer. Count size of string.
Allocate new memory big enough for both strings.
Copy contents of first string into new string.
Copy contents of second string into new string.

You must be careful with what you are asking. A pointer to a std::string , a pointer to a character array and a std::string are all distinct and the process by which you concatenate will be different for each.

What types are you dealing with?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.