Jump to content

Row

- - - - -

  • Please log in to reply
No replies to this topic

#1
Apprentice123

Apprentice123

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 430 posts
Based on the representation of queue on vector management with circular implements the operation

func print_row(R: row);

that displays the contents of the row R


My solution:


func print_row(R: row)

var i: int;

      begin

          for i=1 until TAM

               begin

                   print(vet[(BEGIN+i-1) mod MAX +1]);

               end

      end


It is correct ?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users