Input Matrix in Pascal

Write here if you have problems with your Pascal source code

Moderator: Board moderators

Post Reply
Tatiana Favaro
New poster
Posts: 2
Joined: Sun Nov 02, 2003 4:10 am
Location: ES - Brasil

Input Matrix in Pascal

Post by Tatiana Favaro » Sun Nov 23, 2003 7:11 pm

How input matriz in Pascal, like in Problem 612? Where a length do the matrix is inputed in first line...


Dmytro Chernysh
Experienced poster
Posts: 146
Joined: Sat Apr 26, 2003 2:51 am

Post by Dmytro Chernysh » Sun Nov 23, 2003 7:28 pm

Hi Tatiana,

It's not that difficult -- I can show you how to do that. Mail me.

User avatar
Russell John
New poster
Posts: 40
Joined: Mon Jul 21, 2003 9:21 am
Location: Planet Earth

Post by Russell John » Tue Nov 25, 2003 3:39 pm

Dmytro_Chernysh wrote:I can show you how to do that. Mail me.
That sounds fishy! :lol:

Why can't you help her out here?
1024 Programmer's Lane,
Algorithm City, United States of C++,
Planet Earth.

Experienced poster
Posts: 169
Joined: Wed Oct 31, 2001 2:00 am
Location: Singapore

Post by junjieliang » Wed Nov 26, 2003 12:18 pm

Haha... how fishy can it get? :D
A solution would be to ignore the length of each row and just readln as strings.
Or, read until eoln and then readln to clear the eoln character.

Post Reply

Return to “Pascal”