oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Mon Jun 18, 2007 11:03 am Post subject: uh, what??? |
|
|
I'm having trouble with 2d arrays in pascal. I'm trying to figure it out, but I just can't get the code. Can someone help me understand it?
| Code: |
program arrays2d;
uses crt;
var array2d : array[1..10,1..10] of string;
c, cc : integer;
begin
clrscr;
for c:=1 to 10 do
for cc:=1 to 10 do
begin
array2d[c,cc]:='0';
end;
array2d[3,2]:='M';
array2d[7,5]:='J';
array2d[3,9]:='W';
array2d[4,2]:='S';
array2d[7,10]:='K';
for c:=1 to 10 do
for cc:=1 to 10 do
begin
gotoxy(c,cc);
write(array2d[c,cc]);
end;
readln;
end.
|
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|