I need a function middle that accepts a string and returns the middle character if there are an odd number of characters and the two middle characters if there are a even number of characters in the string in C++ for a program I am writing unfortunately I cannot find anything pre-made for an example thats in c++
Share
For proof that this works: http://ideone.com/vId2l