c++.....in my program i have 3 string-s (string houses,string ink,string buildings)and i must add function substr()... In the program i need to add a function that receives a parameter of type string. The task function is that the resulting string is inserted characters '=' to split a string of characters into subsets 5 letters long. If you come to the end and no more letters after the equal sign is not added. The function should not display anything but the resulting string is returned as a result. Example:
A function recive: "housesinkbuildings"
The function returns: "house=sinkb=uildi=ngs"
in The main program Add call of this function so that it is specified as a parameter string consists houses,ik, buildings.
i do the hole program but this thing, function i dont know very vel,,,beginer,,,please help