comp.lang.ada
 help / color / mirror / Atom feed
* need help with errors im getting
@ 2005-06-24 21:59 ramesh
  2005-06-24 22:42 ` Ed Falis
  2005-06-25  6:17 ` Jeffrey Carter
  0 siblings, 2 replies; 10+ messages in thread
From: ramesh @ 2005-06-24 21:59 UTC (permalink / raw)


Hi Im a biginner in Ada, I get the following errors for the following
code.


with oosum1pro; use oosum1pro;---for date
with oosum1pro1; use oosum1pro1;

package Student_pack is

type Majors is (ComputerScience, Math, Business, Physics, Biology,
Chemistry);
type Classify is (Freshman, Sophomore, Junior, Senior, GradStudent);
--type Hobbies is (None, SailBoarding, Swimming, Hiking, Marbles,
SkyDiving, Acting);
--subtype String5 is String(1..5);
--type Sex1 is (female,male);

type Student is private;

task Studenttask is

entry Student(n: String5; dob: Date; s : Sex1; maj : Majors; cl :
Classify; ed : Date);
entry PrintName(name: Student);--line 17
entry PrintMajor(major: Student);
entry SetMajor(major1: Student);
entry SetClasification(cl: Student);
entry PrintClassification(cl: Student);
entry PrintAll(s: Student);--line 22

end studenttask;

private

type Student is new person with--line 28
record
Major : Majors;
Classification: Classify;
EntryDate: Date;
end record;

end Student_pack;


Errors are at
At line 17,18,19,20,21,22
"subtype mark required in this context"
At line 28

COmpletion of nonlimited type cannot be limited.




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-04 21:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 21:59 need help with errors im getting ramesh
2005-06-24 22:42 ` Ed Falis
2005-06-25  1:43   ` ramesh
2005-06-25  6:17 ` Jeffrey Carter
2005-06-25 18:38   ` ramesh
     [not found]     ` <fovrb1t2l3nvsq6qden8vf2fkmgvg3614h@4ax.com>
     [not found]       ` <6g5sb1ptj1611oq6vbiirutlj9gv5lv39m@4ax.com>
2005-06-26  8:12         ` ramesh
2005-06-26  9:23           ` ramesh
     [not found]           ` <fu9ub1la6ofoc361j6pec48je2efh0b9e9@4ax.com>
     [not found]             ` <l3eub1l2ru5pguun3kitesfmgnfngur7vp@4ax.com>
2005-07-02  8:14               ` ramesh
2005-07-04  5:38               ` Dave Thompson
2005-07-04 21:16                 ` ramesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox