Can someone tell me how i can revise the functions in this????
void correctionspace(string& sent, int offset)//function for space
{
for(int i = offset; i < sent.length(); i++)
{
Type: Posts; User: daywalker-
Can someone tell me how i can revise the functions in this????
void correctionspace(string& sent, int offset)//function for space
{
for(int i = offset; i < sent.length(); i++)
{
This assignment is a bit over for my whole class, no one is understanding. :(
Could u print out some code that could do that?
-Capitalize the first letter.. while the rest are lowercase
-no space in between
-no leading space so " It" ---> "It"
-and no spacing before a...
like
int strshiftleft(string,str & int 0)
{
for(int i=0, i < (str.length() ); i++)
{
if( (i+1) != str.length() )
{
I use a like 3-4 for loops, to get rid of extra spaces and leading spaces, and for only the first letter being capitalized and the I's. How can i include all these under 1 for loop, with ifs?
Look at last post.