* raised CONSTRAINT_ERROR problem
@ 1996-11-16 0:00 polivkaj
1996-11-17 0:00 ` Robert Dewar
0 siblings, 1 reply; 2+ messages in thread
From: polivkaj @ 1996-11-16 0:00 UTC (permalink / raw)
This error occurs on line 3:
search_name : string (1..20);
name_length : integer;
1. new_line(3);
2. put(" Enter your search name-> ");
3. get_line (search_name, name_length);
4. put_line (search_name(1..name_length));
Why is this?
I'm doing this so I can make a string compare function in ADA (class
assignment).
I'm using the following:
Gnat 3.04a compiler
Windows 95 OS (I know, I know)
Any help would be GREATLY appreciated!!
Jon P.
polivkaj@mail.oit.osshe.edu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: raised CONSTRAINT_ERROR problem
1996-11-16 0:00 raised CONSTRAINT_ERROR problem polivkaj
@ 1996-11-17 0:00 ` Robert Dewar
0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1996-11-17 0:00 UTC (permalink / raw)
Jon P. asks
"This error occurs on line 3:
search_name : string (1..20);
name_length : integer;
1. new_line(3);
2. put(" Enter your search name-> ");
3. get_line (search_name, name_length);
4. put_line (search_name(1..name_length));
Why is this?"
First: you did not give nearly enough information to find this problem
Second: it is part of your assignment to find your own problems
Third: You really should ask for help from your instructor or TA etc
posting to tens of thousands of people around the world is
not an appropriate use of net resources (just think, what
if all the students learning Ada, there are thousands of
them, all posted to CLA every time they ran into something
they did not understand.
The reason it is better to ask locally, is because then you can more easily
give all the information that is required. On CLA, especially if you are
a beginner, it will take several iterations just to ask the question
correctly, generating even more unnecessary traffic.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-11-17 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-16 0:00 raised CONSTRAINT_ERROR problem polivkaj
1996-11-17 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox