#STUDENT RESPONSE ANI3-A
6 messages in this thread
I'm having problems with the first program I wrote. When I try to run it (copy
below), I get the error message "Error in =: AA Temp.POC near line 1:
Expecting name in declaration got '…'
Here is the program:
………… program beginning……………….
// Here is my first POCO routine (Saved as "TRY0,POC)
// These are Remarks
// Below is the main module with beginning & ending curly brackets.
main ()
{
// function printf("") prints text in quotes in the
// status bar
printf("This is my first POCO program");
// The Qtext("") function prints text in quotes in a
// dialog box along with a (continue) button
Qtext("Qtext makes the program wait");
// The unprintf () function clears the status bar of // text placed by the
printf("") command
unprintf();
}
// Right above is the closing bracket of the main
// program.
……………… program ends here ………….
Debugging dead ends me. Please help.
Jack Winberg
>>>Jerry>>>
Hi Jack. Start a new file in the POCO editor, and type exactly what you see
below here, without any comments:
main ()
{
printf("This is my first POCO program.");
Qtext("Qtext makes the program wait.");
unprintf();
}
Does the program still bomb out? If not, find out what is different between
the two. If it does, we have a bigger problem.
<<<Jerry<<<
Hi Jerry,
Unfortunately, the program still bombs after I typed in exactly what you
recommended:
main ()
{
printf("This is my first POCO program.");
Qtext("Qtext makes the program wait.");
unprintf();
)
The error message is now "Expecting a number, variable, or string Get ')' "
We may, therefore, be having bigger (I assume compiler) problems. Oh dear,
what now? Shall I reinstall Ani-Pro? I use a boot disk for it, to disable my
memory manager – it has only the stuff needed to get ANI running.
Jack
>>>Jerry>>>
Unfortunately, the program still bombs after I typed in exactly what you
recommended:
main ()
{
printf("This is my first POCO program.");
Qtext("Qtext makes the program wait.");
unprintf();
) <————this should be a }, not a ). Try this.
<<<Jerry<<<
Hi Jerry,
Well, OK – I typed in ALMOST exactly what you recommended. What wonders a
curly bracket can bring about. It runs just fine now.
Thanks VERY much for your prompt and effective attention.
Jack