470,870 Members | 1,400 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

in-place function

What is an in-place function?

And I guess if that is answered it will be easy to work out what a
non-in-place string is.

What is the standard way to write a 'library function', e.g. one that
reverses a string.

Thanks,

Peter.

Apr 3 '06 #1
2 955
Oh, I am talking about doing all this in C++. Visual studio 2003.

Thanks,

Peter.

Apr 3 '06 #2
> What is an in-place function?

And I guess if that is answered it will be easy to work out what a
non-in-place string is.
in-place means that the operation is done directly on input-data.
non-in-place means that the operation is not done directly on input data,
but a temporary buffer is used.
At least that is the definition you'll find in the MSDN glossary.

What is the standard way to write a 'library function', e.g. one that
reverses a string.


Writing a library function means that you define a function with input and
output parameters, and then implement that function so that others can call
it.
If you want that function to be redistributable in a separate library you'd
have to build a dll that contains the function.
Other options are to build a static library, a COM class or a .NET managed
class library.

It depends on your requirements. What are you trying to achieve?

--

Kind regards,
Bruno.
br**********************@hotmail.com
Remove only "_nos_pam"

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Curious Expatriate | last post: by
1 post views Thread by JS Bangs | last post: by
5 posts views Thread by lawrence | last post: by
1 post views Thread by James | last post: by
1 post views Thread by lawrence | last post: by
10 posts views Thread by lawrence | last post: by
2 posts views Thread by Phillip Wu | last post: by
4 posts views Thread by Matt Schroeder | last post: by
5 posts views Thread by Martin Lucas-Smith | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.