I have a homework question in STL.

The question asks to write an implementation of STL algorithm replace_copy_if().

My question is NOT regarding how do I code this, but more importantly what exactly does it mean?

In other words, is it the same as just creating a function and not creating a main in the .cpp file? or does it mean create a .h file?

Im' not really sure where I'm supposed to start with this.

Thank You,

S.o.s.

Thank you for that. My question is, where does my implementation of replace_copy_if actually go?

I'm supposed to modify replace_copy_if, but I'm not sure whether I need to create a .h file or a separate .cpp file to code this.

Thank You,

S.O.S,

Thank you i figured it out. Thanks for all your help!!!

For anyone having this question, you write your implementation in a .h file and then #include your . h file to use your implementation.

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.