From: "ramesh" <ramesh.mudedla@gmail.com>
Subject: need help with errors im getting
Date: 24 Jun 2005 14:59:32 -0700
Date: 2005-06-24T14:59:32-07:00 [thread overview]
Message-ID: <1119650372.546285.220190@z14g2000cwz.googlegroups.com> (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.
next reply other threads:[~2005-06-24 21:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 21:59 ramesh [this message]
2005-06-24 22:42 ` need help with errors im getting 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox