Your goal is to rewrite the Mid function found in Visual Basic. You can find information on this function here: http://msdn.microsoft.com/library/de...l/refctMid.asp
Before you go thinking this is a simple task... I assure you it's not. It shouldn't take you too long to code, but it's a real brain buster.
Your Mid() implementation must satisfy the following syntatic forms:
std::string mystring = Mid(someotherstring, 2, 5);
Mid(mystring, 2, 5) = someotherstring;
Mid(mystring, 0, 3) = Mid(someotherstring, 2, 3); // Very tricky
This contest is C++ only (you can't do it in C! (OOPs, there's a hint))The contest will be Run from now until March 7th (that's like 10 days). If you have any questions, or if you'd like to be a judge or a contestant please reply to this thread.
Entries will be sumitted to my email address: firstname.lastname@example.org before 12:00AM (your time) March 7th.
Judges - 3
[1 Slot free, please apply]
Contestants - 10