Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
this program eliminates repeated elements of a file of text
#3
Hi, Ralph!

This is the theory of process...

Init values:
File : A = a,z,c,a,h,a,b,e,f....
File : B = Ø

Process:

1:
Read A
End A? : Y >>> Close A >>> End program
End A? : N >>> Read B(x)
If A(x) = B(x) : N >>> Open B >>> Write A(x) in B >>> Close B >>> Goto 1
If A(x) = B(x) : Y >>> Goto 1

End process


End values:
File : A = a,z,c,a,h,a,b,e,f....
File : B = a,z,c,h,e,f

Greetings from Spain!
Reply


Messages In This Thread
Re: this program eliminates repeated elements of a file of text - by lrcvs - 09-14-2008, 09:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)