Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Pascal help needed Posted by sonicman76 on 31 Aug 2009 at 9:32 PM
Hello I have taken several programming lanuages and I am trying to learn pascal for a job I applied for

I was wondering how to do something

OK say you have the following string 'its going to rain today'
what I need to do is delete all occurences of the letters tsia

what I have now is a for loop and a while loop what do I need to add to delete the letters
Report
Re: Pascal help needed Posted by Atex on 1 Sept 2009 at 2:38 PM
For each letter search through the string, by either using the pos function or string indexing, then get rid of the occurrences with delete or copy. I would just flag the occurrences then copy the non flagged ones to a new string...



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.