What I want is to define an array of Strings in Ada.
I'm trying to execute this code:
type String is array (Positive range <>) of Character;
type lexicon is array(1..7) of String(1..20);
nomFumadors : lexicon := ("Macia","Xisco","Toni","Laura","Rocky","Paz");
nomNoFumadors : lexicon := ("Marina","Marta","Joan","Africa","America");
And the compiler says:
warning:wrong length for array of subtype of "String" defined at line 42
My line 42 is this:
type lexicon is array(1..7) of String(1..20);
But compailer says the warning is in line 43 and 44: what are these:
nomFumadors : lexicon := ("Macia","Xisco","Toni","Laura","Rocky","Paz");
nomNoFumadors : lexicon := ("Marina","Marta","Joan","Africa","America");
Can somebody help me with that?