954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

turbo pascal homework

For homework in turbo pascal I have to find a some bugs and refactor them. I need some help changing this so that it does the same thing which is to remove comments without the excessive code.

k:=0;
for i:=length(s) downto 1 do
       if s[i]=' ; ' then k:=i;
if k>0 then s:=lstr(s,k-1);
space2rome
Newbie Poster
1 post since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

It's your homework to do that, not ours.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: