Hi guys; I know this is specific to C++ programming but I am new to the programming world, just beginning to study in my A Levels so this shouldn't be a problem for you guys (we are learning currently in pascal but are starting C and Java net year)
For my homework assignment I need to devise a 2Dimensional array to produce my timetable. I've looked at my script many times and can't clear the error I face on line "5/28 Timetable.pas
Fatal: Syntax error, OF expected but [ found"
I tried to trobleshoot this by making my "of" uppercase but no luck; below I have attached my script:
Code:
program Arrays;
var
//Array Variables\\
myArray : Array [0..5][0..4] OF String;
Counter : integer;
//Lessons Variables\\
C : Computing;
I : ICT;
P : Product Design;
B : BTEC Business;
F : Free Period;
R : Registration;
///////////////Main Program\\\\\\\\\\\\\\\
begin
///////////////Mondays Lessons\\\\\\\\\\\\\\\
myArray[0][0]:='R';
myArray[0][1]:='I';
myArray[0][2]:='C';
myArray[0][3]:='F';
myArray[0][4]:='F';
myArray[0][5]:='F';
///////////////Tuesdays Lessons\\\\\\\\\\\\\\\
myArray[1][0]:='R';
myArray[1][1]:='F';
myArray[1][2]:='I';
myArray[1][3]:='F';
myArray[1][4]:='I';
myArray[1][5]:='B';
///////////////Wednesdays Lessons\\\\\\\\\\\\\\\
myArray[2][0]:='R';
myArray[2][1]:='B';
myArray[2][2]:='I';
myArray[2][3]:='C';
myArray[2][4]:='B';
myArray[2][5]:='F';
///////////////Thursdays Lessons\\\\\\\\\\\\\\\
myArray[3][0]:='R';
myArray[3][1]:='B';
myArray[3][2];='P';
myArray[3][3];='F';
myArray[3][4];='I';
myArray[3][5];='C';
///////////////Fridays Lessons\\\\\\\\\\\\\\\
myArray[4][0];='R';
myArray[4][1];='P';
myArray[4][2];='F';
myArray[4][3]:='F';
myArray[4][4]:='C';
myArray[4][5]:='B';
end.
Any response would be much appreciated, hopefully we can get to the bottom of this ...
Thanks in advance
Alex