Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We had a comp test today and i prepared hard but this is the only thing i got wrong, can anyone please help me with this????

What I have tried:

We had a comp test today and i prepared hard but this is the only thing i got wrong, can anyone please help me with this????
Posted
Updated 12-Nov-17 9:19am
Comments
Patrice T 12-Nov-17 4:45am    
And you have done something.

No, because you haven't shown us anything you have done, and we aren't here to do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

This is not a complicated program: it's a simple loop spotting word starts and ends, and identifying a single character within them. Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
The String[^] class provides all you need. Have a look, for instance, at split and indexOf methods.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900